That isn't currently supported. I'd like to understand the use case better, 
though. Under what circumstances might the user want to select either a file or 
a directory?

On May 14, 2010, at 10:36 AM, David Gao wrote:

> 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