| I think I get it. It sounds like you need to refresh the JScrollPane after updating it. You could either use a listener or just call the JScrollPane.revalidate() method followed by the .repaint() method. Also, I still think you need to initialize the size of either the JTextArea or of the JScrollPane. I saw some reference to making sure you do this on the Sun website, but not what the consequences are. JScrollPane.setPreferredSize(rowsize, columnsize) can be used, for example.
Good luck. Let me know how it turns out. |