title: Java: JFileChooser How to show Selected File in a textField
body: <p>I have a JFileChooser and Im able to print the Absolute Path in console.
  I need to show the FilePath in a Text field as soon as the User selects the file.</p>
  
  <p>Below is the code please let me know how to do it.</p>
  
  <pre><code>        public void actionPerformed(ActionEvent ae) {
  
          JFileChooser fileChooser = new JFileChooser();
          int showOpenDialog = fileChooser.showOpenDialog(frame);
  
          if (showOpenDialog != JFileChooser.APPROVE_OPTION) return;
  </code></pre>
  
  <p>Please let me know if you need any other details.</p>