File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes preserving_newline Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "preserving_newline" Watch "preserving_newline" New topic
Author

preserving_newline

Lars Val
Greenhorn

Joined: Apr 02, 2004
Posts: 5
I just found out that calling JTextArea.getText() seems to truncate the string if it contains a newline. How do I work around this?

regards
/lars
Lars Val
Greenhorn

Joined: Apr 02, 2004
Posts: 5
HORRIBLY HORRIBLY wrong. I obviously need a break.

/lars
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: preserving_newline