Tuesday, May 5, 2009


How to wrap the words in JTextArea

Tired of breaking words in your text areas??? You just have to wrap it through this code:


Just insert it! For Netbeans user you have to right click the textarea then select Customize Code then type the line after the declaration of the textarea.

:: info ::
setWrapStyleWord(boolean word)
Sets the style of wrapping used if the text area is wrapping lines.

-- enjoy!

0 Reactions to this post

Add Comment