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: FileDialog vs JFileChooser




On 23-May-06, at 3:24 PM, Mike Swingler (if that is his real name!) wrote:


The FileDialog is designed to be a straight pass-though to the native operating system's Open/Save dialog, whereas the JFileChooser is implemented in pure Swing, allowing it to be embedded in other Swing components.

It's not necessarily the case that the JFileChooser is better than the FileDialog because it's newer, they are simply two different implementations with very different design intentions and constraints.

Generally we steer folks towards the FileDialog, even in Swing applications, assuming they want something as close to the native platform's look as possible.

Wouldn't it be better if you didn't have to "steer folks towards the FileDialog" ?


Is there additional functionality you use with JFileChoosers that you notice missing with the FileDialog?

Yes.
All of it. (setAccessory, addChooseableFileFilter, setApproveButtonText, etc. )
Please fix it.



Scott _______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >FileDialog vs JFileChooser (From: Paul Archibald <email@hidden>)
 >Re: FileDialog vs JFileChooser (From: Mike Swingler <email@hidden>)



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.