View Single Post
Old 08-11-2002, 03:20 PM   #4 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
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.
technobard is offline   Reply With Quote