JFileChooser not seeing network mounted files on 1.7.0_06 on Mac

Paul Taylor paul_t100 at fastmail.fm
Fri Aug 24 04:29:21 PDT 2012


On 24/08/2012 12:02, Paul Taylor wrote:
> On 24/08/2012 11:50, Anthony Petrov wrote:
>> On 8/24/2012 2:17 PM, Paul Taylor wrote:
>>> On 16/08/2012 13:43, Anthony Petrov wrote:
>>>> I don't recall such an issue. BTW, is the NAS accessible via 
>>>> java.io.File API?
>>>>
>>>> In any case, please file a bug report at http://bugs.sun.com/
>>>>
>>> Actually I may get getting confused here they are they if I select 
>>> Harddrive from the top option and then /Volumes folder. But is much 
>>> harder to find this folder then from native applications, i.e if i 
>>> start iTunes and select File/Add to Library... I get a dialog that 
>>> contains a Favourites coliumn and looks very much like a Finder 
>>> Window. In another project i used Quaqua File Chooser and that 
>>> wasn't far off the iTUnes dialog but don't know if supported on Java 
>>> 7.  But then I relunctanctly tried using a java.awt.FileDialog 
>>> instead of a JFileChooser and they look pretty much the same, i.e 
>>> nothing like an iTunes dialog , I though the FIleDIalog would have 
>>> all the functionality of a native file dialog ?
>>
>> Well, j.a.FileDialog *is* a native file chooser dialog after all. 
>> Maybe it's just missing a couple additional calls/styles that would 
>> enable more native features.
>>
> No, because I'm really not clear if I'm doing something wrong here, 
> and surely having a file dialog that has the functionality of the 
> dialogs used by another applications is  a long standing existing issue.
>
> The other thing Im confused about (in a good way)  is that both 
> FileDialog and JFileCHooser do seem to correct icons, i,e the 
> applications folder contains a little blue A on the folder, whereas 
> this post 
> http://nadeausoftware.com/node/89#UsingtheJFileChoosertogetMacfileandfoldericons 
> indicated JFileChooser does not.
>
> Paul
>
Sorry I did have something wrong, a messup in my source control, so my 
latets code wasn't being run.
Now when using FIleDIalog it does display a native dialog , but I want 
to be able to select folders not files, but it is not letting me, Ive 
tried using

System.setProperty("apple.awt.fileDialogForDirectories", "true");

but seems to have no effect, is this option still supported ?

Paul


More information about the macosx-port-dev mailing list