switched from JFileChooser to FileDialog