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



Mike,

My personal reason for using JFileChooser and not using FileDialog is the lack of multiple file selection.

Larry

Mike Swingler 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. Is there additional functionality you use with JFileChoosers that you notice missing with the FileDialog?

Thanks,
Mike Swingler
Java Frameworks Engineer

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Larry Nussbaum email@hidden CIDEX Computer Systems 201/653-5105 Hoboken, New Jersey 201/653-8507 fax _______________________________________________ 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.