title: JTextField setText doesn't work
body: <p>I have a JTextField and I would like to setText at runtime when a button is pressed and the filechooser returns the selected file. The problem is that the TextField is not updating when the file is selected.</p>
  
  <pre><code>private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
      jFileChooser1=new JFileChooser();
      jTextField1=new JTextField();
      jFileChooser1.showOpenDialog(myJFrame.this);
      File f=jFileChooser1.getSelectedFile();
      String filePath=f.getAbsolutePath();
      System.out.println(filePath);
      jTextField1.setText((filePath));
      jTextField1.setVisible(true);
      System.out.println(jTextField1.getText());
  
  }
  </code></pre>
  
  <p>The debug logs return the right values, the file path name. Thanks.                                        </p>