• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea....

 
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
Pie
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