0

Hi,

Is there a way to format a string into a paragraph format? The closest thing I got was entering the string into a JTextArea, but the only problem with this is that the words get split in between its characters making it almost seem like two different words....


- Thanks!

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by kashn
0

JTextArea has a bound property for line wrapping that controls whether or not it will wrap lines. By default, the line wrapping property is set to false.

Use following methods:
setLineWrap(boolean wrap)
setWrapStyleWord(boolean word)

0

How do I mark this as solved..? adatapost already solved it! :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.