Is the file you are selecting relative or absolute?

On Aug 19, 2011, at 9:09 AM, Edvin Syse wrote:

> Yes it does.
> 
>> -----Opprinnelig melding-----
>> Fra: Greg Brown [mailto:[email protected]]
>> Sendt: 19. august 2011 14:51
>> Til: [email protected]
>> Emne: Re: SV: FileBrowserSheet#setSelectedFile() does not take effect
>> 
>> Does the sheet actually go to the right directory when you call
>> setRootDirectory()?
>> 
>> On Aug 19, 2011, at 8:40 AM, Edvin Syse wrote:
>> 
>>> That's the first thing i tried actually :) Same result.
>>> 
>>>> -----Opprinnelig melding-----
>>>> Fra: Greg Brown [mailto:[email protected]]
>>>> Sendt: 19. august 2011 14:39
>>>> Til: [email protected]
>>>> Emne: Re: FileBrowserSheet#setSelectedFile() does not take effect
>>>> 
>>>> 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