I am having trouble with the same thing as this guy:
MigLayout JTextArea is not shrinking when used with linewrap=true
and I used the solution described in one o
Normally, you would put the JTextArea into your JScrollPane. Like this:
JTextArea area = new JTextArea(); JScrollPane scroll = new JScrollPane(area); JPanel panel = new JPanel(); panel.add(scroll);