JFileChooser not seeing network mounted files on 1.7.0_06 on Mac

Paul Taylor paul_t100 at fastmail.fm
Fri Aug 31 12:52:21 PDT 2012


On 24/08/2012 12:52, Anthony Petrov wrote:
> On 8/24/2012 3:47 PM, Paul Taylor wrote:
>>>> System.setProperty("apple.awt.fileDialogForDirectories", "true");
>>>>
>>>> but seems to have no effect, is this option still supported ?
>>>
>>> This is fixed for 7u8 under CR 7161437.
>>>
>> Thats good news , but I am in fact using 1.7.0_08-ea, is there later 
>> version of 7u8 or am I using the fix wrong Im doing
>>
>>         System.setProperty("apple.awt.fileDialogForDirectories", 
>> "true");
>>         FileDialog chooser = new FileDialog(MainWindow.frame);
>>         chooser.setMode(FileDialog.LOAD);
>>         chooser.setVisible(true);
>>         String folderSelected = chooser.getDirectory();
>>         System.setProperty("apple.awt.fileDialogForDirectories", 
>> "false");
>>         File folder = new File(folderSelected) ;
>>         if(folder.exists() && folder.isDirectory())
>>         {
>>             //DO something
>>         }
>>
>
> The fix hasn't made it to the master repository yet. It is expected to 
> appear in either 7u8b03 or 7u8b04. Maybe, in the worst case, in b05. 
> Please check what build you're using with `java -version` and stay tuned.
>
> -- 
> best regards,
> Anthony
>
Doesn't seem to have made it build 5 either,

http://download.java.net/jdk7u8/changes/jdk7u8-b05.html

problematic for me I cannot release my product until this problem is 
resolved.



More information about the macosx-port-dev mailing list