Hi,

I'm writing a file chooser now. I found that I can only select a file when the mode is SAVE_AS and a directory when the mode is SAVE_TO.

I would like a mode in which I can select either a file or a directory. I find no way to realize this. Please help.

My use case is something like what Swing JFileChoose does below:

JFileChooser chooser = new JFileChooser();
...
chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
int returnVal = chooser.showOpenDialog(this);

Please help

Reply via email to