wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes JTextArea.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextArea...." Watch "JTextArea...." New topic
Author

JTextArea....

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
ok, i have a JTextArea that diplays chat output...

umm, how do i get the text area to keep scrolling down as it
gets input?

instead of the text not being visible...

Justin


You down with OOP? Yeah you know me!
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
textArea.setCaretPosition(textArea.getDocument().getLength());
 
jQuery in Action, 2nd edition
 
subject: JTextArea....