i'm using java.awt.FileDialog whenever possible because JFileChooser
on Aqua is a real pain-in-the-ass (personal opinion). however, there
are cases where i have to switch, a simple example is a requester for
selecting multiple files - not possible to do in FileDialog . also
note that 98% of java apps not primarily developed on mac use the
swing dialog not the awt, and it's really annoying to use them. i
don't understand why apple doesn't put a little more effort into
making JFileChooser more native feeling. it's just a few things, like
being able to sort by last-modfication-date, getting into the last-
visited-places list, having the device list on the left and so on.
right now it always takes ages to navigate from the home folder
(default usually) into a custom harddisk volume.
best, -sciss-
Am 23.05.2006 um 21:24 schrieb Mike Swingler:
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
_______________________________________________
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