title: Newline "\n" in TextField java
body: <p>I am building string ( 3 different objects ) and at the end of string I put  a newline
  when I print in console I get what expected but when I use setText in the textfield I get one line displayed, Is there a way to get the newline in textfield?</p>
  
  <pre><code>    while (itr.hasNext()) 
            tx +=   "\n"+el.getnombre() + " " +other+"\n";  
      System.out.println(tx);
      textfield.setText(tx);
  </code></pre>