title: How to get text from JTextField to JLabel that is in another JFrame?
body: <p>I am making an application in Netbeans and I would like to get the text from the <code>jTextField</code> and set it to a <code>jLabel</code> that is in another <code>jFrame</code> (not the same!)</p>
  
  <p>I did this:</p>
  
  <pre><code>jLabel.setText(jTextField1.getText());
  </code></pre>
  
  <p>But it doesn't work.
  And what event method should I use? <code>actionPerformed</code>?</p>