Try calling setRootDirectory() with the parent directory of the file you want 
to select.

On Aug 19, 2011, at 8:20 AM, Edvin Syse wrote:

> I want to select a spesific  folder after the sheet is opened, but nothing is 
> selected:
> 
> FileBrowserSheet browser = new 
> FileBrowserSheet(FileBrowserSheet.Mode.SAVE_TO);
> browser.getWindowStateListeners().add(new WindowStateListener.Adapter() {
>       public void windowOpened(Window window) {
>                       browser.setSelectedFile(lastTarget);
>       }
> });
> browser.open(...)
> 
> FileBrowserSheet. selectedFiles is updated with the selection, and 
> selectedFilesChanged is fired. Any idea what's wrong?
> 
> -- Edvin

Reply via email to