• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea LineWrap  RSS feed

 
David Herzig
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Java Users

I have created a JInternalFrame with some JTextAreas inside. The JTextAreas are setLineWrap(true). This works great. But if I resize the internal frame, there will be a scrollbar for the JTextAreas. But I want after a resize, that the TextAreas are displayed in LineWrap(true) mode and not with a scrollbar.

does anyone have an idea?

Many thanks in advance

Dave
 
kelly devon
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if u are using setLineWrap in a TextArea u may have to use a setWrapStyleWord inorder for it to take effect. just try it if it doesnt work.someelse will help out
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!