• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea

 
Andy Rayner
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello when i add something to a textarea with the append() method it doesnt scroll down i have to keep scrolling down, is there a property i need to set?

Regards
Andy
 
sasi kala
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Place the textarea in a ScrollPane and set line wrap property
jTextArea1.setLineWrap(true);

after appending text to textarea write this line,



Hope This Helps
All The Best
 
Andy Rayner
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!