Java JFileChooser with Filter to supposedly display ONLY directories fail to show just directories
问题 (Thanks in advance! Please let me know if you need more info. Sample code at the bottom.) Problem I'm trying to solve: I'm trying to get this JFileChooser object to display only directories (and not files), through the use of a javax.swing.filechooser.FileFilter object that has this in the accept(File file) overridden method: return file.isDirectory(); . However, at least on my mac, it doesn't seem to prevent files from being displayed along with the directories (it does prevent files from