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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2091
    
    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?
 
Similar Threads
JScrollPane and JPanel
Does Swing need another Layer?
JTextArea and scrolling
JScrollPane won't resize to JPanel height as intended
JScrollBar/JScrollPane