title: How to open files in Java Swing without JFileChooser
body: <p>I'm using Java Swing (GUI) and I want to add a button to my project for opening files.</p>
  
  <p>I don't like the <code>JFileChooser</code> since it opens a small window for browsing through the files of the directories. Can I use something else instead of the <code>JFileChooser</code> <strong>under Java Swing</strong>? </p>
  
  <p>I've tried to use elements of SWT but it didn't work, meaning is the use of the button object and then use it inside the <code>JFrame</code>, but that failed, so I guess SWT and Swing don't mix together?  </p>
  
  <p>Here is the example of <a href="http://www.java2s.com/Code/Java/Swing-JFC/DemonstrationofFiledialogboxes.htm" rel="nofollow noreferrer">Java Swing with JFileChooser</a>  and I'm looking for something <a href="http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/FileDialogExample.htm" rel="nofollow noreferrer">like this</a> to put in my <code>JFrame</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/RbFZ9.png" alt="Windows file dialog"></p>