Home arrow static arrow Java Programming [Archive] - viewing the bottom of jtextarea in jscrollpane
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - viewing the bottom of jtextarea in jscrollpane
This topic has 2 replies on 1 page.

Posts:15
Registered: 3/7/04
viewing the bottom of jtextarea in jscrollpane  
Aug 4, 2004 11:31 PM



 
hi i am using a jtextarea with a jscroll pane to display some log message in my application. how to i make it such that when the text in the textarea goes beyond the textarea size, it automatically scrolls down to view the latest entry?

thanks!
 

Posts:319
Registered: 11/8/00
Re: viewing the bottom of jtextarea in jscrollpane  
Aug 5, 2004 1:07 AM (reply 1 of 2)



 
Take a look at this trail in the tutorial. The example does indeed scroll the the newly inserted text.

http://java.sun.com/docs/books/tutorial/uiswing/components/textarea.html

Hope that helps
 

Posts:319
Registered: 11/8/00
Re: viewing the bottom of jtextarea in jscrollpane  
Aug 5, 2004 2:39 AM (reply 2 of 2)



 
ta for the dukes
 
This topic has 2 replies on 1 page.