• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea....  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
textArea.setCaretPosition(textArea.getDocument().getLength());
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!