JTextArea and newLine

I have a JTextArea that wraps the text so the text doesn't go out of bounds. But when the text is then outputed to a text document, there is no newline and the text runs across the whole document, no \n. Is there a method in the JTextArea that automactically implements a new line for when using getText() or do I have to hard code that?

[345 byte] By [blackmagea] at [2007-11-27 10:42:50]
# 1

You would have to hard code it.... when the JTextField wraps a line there is no new line entered within the text string. It's purely cosmetic.

c0demonk3ya at 2007-7-28 19:20:53 > top of Java-index,Desktop,Core GUI APIs...