 <p>Once you have your <code>JFrame</code> or <code>JPanel</code>, add a text field to it.</p> <p><code>JTextArea</code> is a good choice, because it's multiple lines. Once it is added, you can <code>.append('text');</code> to it instead of writing the <code>System.out.print();</code></p> <pre><code>JFrame jFrame = new JFrame(); JTextArea jTextArea = new JTextArea(); jTextArea.append( "Hello World." ); jFrame.add( jTextArea ); </code></pre>