Changed from AWT FileDialog to Swing JFileChooser since it supports
files & dirs