NewLine « JTextArea « Java Swing Q&A





1. Java JTextArea - Adding a newline    stackoverflow.com

So I'm stumped. I, for some reason, seem to remember that Java does weird things when you try to add new lines to stuff... so I think that may be the ...

2. Display text in jtextarea with newline and spacing    stackoverflow.com

I have set the text of JTextArea with setText function

abc="PREFIX table: <http://www.daml.org/2003/01/periodictable/PeriodicTable#> " +
            "SELECT ?name " +
   ...

3. Java JTextArea multiline help    stackoverflow.com

one problem I'm having is i have 2 JTextAreas and i need to add a list of items to them. The problem I'm running into is the string doesn't automatically move to ...

4. NewLine with JTextArea and PrintStream    forums.oracle.com

5. NewLine on a JTextArea    forums.oracle.com

I output the contents of a JTextArea to a text file. The newlines do not show up; only little square null character. Can I see or change the new line char that is being used for JTextArea. I chewckd the docs and they haven't cleared it up. Any help is apreciated. I'm outputting with 'println' from a Printwriter Object. Sean