I need to restrict my JFileChooser
to a directory and its children, because the file should only be saved on external media. I won't run into any problems with the external memory not being present, that has already been handled.
Should I...
- Override
getCurrentDirectory()
? - Use a
FileFilter
? Normally these useString.endsWith()
, but I would get the absolute path and restrict based on the path to the external device.