Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Egidius Bakker   on Jun 19 In Java Category.

  
Question Answered By: Terence Mitchell   on Jun 19

Set your JTextArea to automatically wrap at a word  boundary as in the
following snippet:

JTextArea myTextArea = new JTextArea();
myTextArea.setLineWrap(true);
myTextArea.setWrapStyleWord(true);

Share: 

 
 
Didn't find what you were looking for? Find more on How do I fix a jcomponent? Or get search suggestion and latest updates.


Tagged: