This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea....

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