How can I add a large text in Netbeans without showing it to me in a single line and cut it? [closed]

1

I would like to know what I should do so that when you run the program, do not show it to me like this: ex: "I've always wanted my computer to be as easy to use as my phone, ....." in this example the rest of the text is not shown follows in a single line

I would like to know how to make it look like this:

"I've always wanted my team to be as easy to use as my phone, my wish has come true because I can no longer find a way to use my phone"

    
asked by Marcos Medina 05.11.2016 в 05:26
source

1 answer

0

Try this:

textArea.setLineWrap(true);

And to make an acknowledgment of the complete words, use this:

textArea.setWrapStyleWord(true);

Where textArea is the name of your item.

    
answered by 05.11.2016 в 06:23