Carriage « JTextArea « Java Swing Q&A





1. Carriage Return Mark for JTextArea    java-forums.org

2. Saving JTextarea text with carriage returns    forums.oracle.com

Hello All, What i am trying to do is save the text of a jTextArea into a file, this i have done so far, but all the text is saved on one line. Does anybody know how i can save the text exactly how it appears within the textarea? (i.e With the carriage returns) Many Thanks Matt