aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to auto scroll to see the bottom of the jtextarea? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to auto scroll to see the bottom of the jtextarea? " Watch "how to auto scroll to see the bottom of the jtextarea? " New topic
Author

how to auto scroll to see the bottom of the jtextarea?

Adrian Burlington
Ranch Hand

Joined: Jun 16, 2009
Posts: 75
Hi there,

I have a JTextArea with JScrollPane. The jTextArea shows data from a thread that runs in the background. Problem is that when new data comes I need to scroll down in order to see the new data. Question: how to automatically scroll so the bottom of the jTextArea will always shown?

Thanks!


Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2200
    
    7
See Text Area Scrolling.
Adrian Burlington
Ranch Hand

Joined: Jun 16, 2009
Posts: 75
THANKS ROB!!!

for JDK5...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to auto scroll to see the bottom of the jtextarea?