break line in textarea javascript code example Example: jtextarea automatic line break textArea.setLineWrap(true); textArea.setWrapStyleWord(true);