Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextAre with JScrollBar  RSS feed

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

quick question: I have a JTextArea in a JScrollPane.
some text is added to the JTextArea (automatically). when the text reach the end of the frame, I have to use the scroller to see what is written.
Q: how can the JScrollPane scrolls automatically (so the end user could see the text)

thanks
peter
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!