Linebreak in JTextArea
<p>I'm trying to display a text from a file in a <code>JTextArea</code>. The thing is, that the <code>JTextArea</code> does not display any linebreaks. If I try to display the text in a way like this: ` </p>

<pre><code>FileHandler fh = new FileHandler();                 
String text = fh.loadFile("src/Files/info.txt");              

textArea = new JTextArea(text);
textArea.setSize(350, 350);
textArea.setVisible(true);
textArea.setEditable(false);
textArea.setFocusable(false);
textArea.setBorder(null);

this.add(textArea);
</code></pre>

<p>Content of the <code>text</code> String is <code>Line one\nLine two\n Line three</code>.
The TextArea only shows the following output:
<code>Line one\nLine two\n Line three</code></p>

<p>But if I manually set the text like this:</p>

<pre><code>String text = "Line one\nLine two\n Line three"`
</code></pre>

<p>The linebreaks are shown correctly.</p>