You can force JFileChooser to select only folders, if you add the following command.
_fileChooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
in the snippet that Bibhaw posted.
You can force JFileChooser to select only folders, if you add the following command.
_fileChooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
in the snippet that Bibhaw posted.