Changing JTextArea to JScrollPane Causes it to not be visible
- by user1806716
I am having an issue with JScrollPanes and JTextArea objects and getting them to work together.
If I just add a JTextArea to my JPanel, it works fine and shows up where I tell it to. However, if I change the contentPane.add(textArea) to contentPane.add(new JScrollPane(textArea)), the textArea is not longer visible and there is no sign of the…