posted 18 years ago
How are you inserting text to the JTextArea? By typing or programmatically through calling JTextArea.append()?
If you are doing it through append(), you just need to add a "\n" (newline character) to the end of the strings you are appending.
If it is through typing, you need to add a FocusListener to the JTextArea, so that each time the user re-enters the JTextArea, a "\n" is appended to the JTextArea.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.