title: How can I create a new line in JTextField to type in?
body: <p>I want to make a Swing program that writes updates on what you have done. It writes all the information on an uneditable <code>JTextField</code>. </p>
  
  <p>For example:</p>
  
  <pre><code>You have changed the text to BLUE.
  You have changed the text to RED.
  </code></pre>
  
  <p>The problem is that I can't make the two lines separate. </p>
  
  <p>What I get is this:</p>
  
  <pre><code>You have changed the text to BLUE. You have changed the text to RED.
  </code></pre>
  
  <p>What I've tried is this: (This does not work)</p>
  
  <pre><code>TF_BetInfo.setText(TF_BetInfo.getText() + "\nYou have changed the text to BLUE.");
  TF_BetInfo.setText(TF_BetInfo.getText() + "\nYou have changed the text to RED.");
  </code></pre>