I\'m using Java Swing (GUI) and I want to add a button to my project for opening files.
I don\'t like the JFileChooser since it opens a small window for
JFileChooser
If you do not need the flexibility of the JFileChooser, you can opt for the FileDialog which uses the native OS file dialog. See also Code ranch topic and this answer on SO
FileDialog