File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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: 2152
    
    7
See Text Area Scrolling.
Adrian Burlington
Ranch Hand

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

for JDK5...

 
wood burning stoves
 
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
JScrollBar/JScrollPane
JScrollPane won't resize to JPanel height as intended