How can i get the inputted text in a textfield from another frame to the 2nd frame?
<p>Here is the syntax... on the first frame</p>

<pre><code>JTextField tf1 = new JTextField();
</code></pre>

<p>from the bottom there has the actionListener</p>

<pre><code>this.setVisible(false);
new Display().setVisible(true);
</code></pre>

<p>Now on the 2nd Frame i want to create a text field that automatically display the one I typed in the textfield on first frame. (but when I try to call the tf1 variable, it cannot be resolved.)</p>
