This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 2155
    
    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
JScrollBar/JScrollPane
Does Swing need another Layer?
JScrollPane and JPanel
JTextArea and scrolling
JScrollPane won't resize to JPanel height as intended