Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

Java TextArea()

How can I word wrap strings in Java TextArea() object?
0
zorlac77
Asked:
zorlac77
  • 2
1 Solution
 
cini_gmCommented:
setLineWrap(boolean) is used for line wrapping policy of textarea..
 If set to true the lines will be wrapped if they are too long to fit within the allocated width. If set to false, the lines will always be unwrapped.

Syntax.
 textarea.setLineWrap(true);
0
 
objectsCommented:
Just don't use horizontal scrollbars:

new TextArea("", 0, 0, TextArea.SCROLLBARS_VERTICAL_ONLY);
0
 
objectsCommented:
:-)

http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com

PS. What did I need to do to get an 'A'?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now