Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why is JFileChooser so non-Mac-like?



Matt Drance wrote:
> Have you tried setFileNameFilter()?

I have. Works like a charm in some of my applications. Although I can not
use it on Windows due to Javasoft Bug 4031440.

In the particular case I mentioned in my last mail, file name filtering did
not do the job because I had to support multiple file types per file (i.e.
binary, plain text, and hypertext for .html files).


> Is there a particularly compelling reason people need to use JFileChooser if
> they're looking for a mac-like dialog? ...

Here are some reasons:
- JFileChooser can be embedded into other components, and other components
can be embedded into the JFileChooser.
- JFileChooser is modular (Pluggable Look & Feel, FileSystemView, FileView).


> I was just reminded that multiple file selection is a JFileChooser-only
> thing, which is a valid argument as well. However there shouldn't be any
> reason we can't implement that for AWT (there really aren't many rules
> for that sort of thing).

Sounds good. But I don't know if this feature is very important. I could not
find a feature request for this in Javasoft's bug parade.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.