The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: Are the updates to FileDialog coming in Java 7?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 7 - Last Post: Mar 14, 2008 7:20 AM by: swpalmer
carcour

Posts: 79
Are the updates to FileDialog coming in Java 7?
Posted: Mar 13, 2008 10:52 AM
  Click to reply to this thread Reply

I would like to know if FileDialog is planned to be fixed in Java 7 to contain all the features of the native FileDialog. I couln't find anything in the release notes of Java 7. I've talked about this over and over but no one seems to answer. http://forums.java.net/jive/thread.jspa?messageID=233718
Can anyone from the AWT/Swing team give us a status please?
Guys if you're interested in improving FileDialog vote for this bug:
http://bugs.sun.com/view_bug.do?bug_id=6192906

cowwoc

Posts: 1,055
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 13, 2008 11:23 AM   in response to: carcour
  Click to reply to this thread Reply

I don't even think we need to wait for Java7 for some of this stuff. I've personally been requesting that FileChooser should look and feel exactly like a native file chooser in Windows for years now. There shouldn't even be a need to wait until Java7 to do this because it isn't a feature request, it is purely a bug fix. Obviously I'd like JFileChooser to also look and feel identical to the native controls under the Windows L&F but if you deliver a FileChooser solution then obviously this becomes lower priority.

I too would like to know when the AWT/Swing team plan on delivering this update.

I agree with carcour that Sun needs to resolve what it wants to do with FileChooser and JFileChooser moving forward, whether it wishes to implement the same functionality twice or whether there is an easier way to do this.

Thank you,
Gili

mbien

Posts: 157
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 13, 2008 12:41 PM   in response to: carcour
  Click to reply to this thread Reply

> Can anyone from the AWT/Swing team give us a status
> please?
> Guys if you're interested in improving FileDialog
> vote for this bug:
> http://bugs.sun.com/view_bug.do?bug_id=6192906
this should have IMO higher priority to fix:
http://bugs.sun.com/view_bug.do?bug_id=6578753
there are still serious performance problems with file dialogs (thats why there is a custom implementation in NetBeans 6)

I also like to point out that the JComboBox button is not rendered on Linux GTK window manager (->ubuntu's default)
http://bugs.sun.com/view_bug.do?bug_id=6624717

there are also compiz/beryl/compiz-fusion related problems on ubuntu
http://bugs.sun.com/view_bug.do?bug_id=6632124
but I am sure most linux user in this forum know that already ;)

how to attack Flash If we even can't use the default Filechooser on windows, can't open a frame on Ubuntu with GL Desktop enabled or require workarounds for system tray icons?

I hope there will be enough time left to fix some of the desktop integration issues for the consumer release, Java 7 haven't even been announced yet....

carcour

Posts: 79
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 13, 2008 1:42 PM   in response to: mbien
  Click to reply to this thread Reply

JFileChooser is not the answer. Native FileDialog should be fixed as Java should use the best that each platform provides not to reinvent the wheel.
JFileChooser is slow, doesn't support thumbnails and doing so in Java without caching is a joke, it would just be too slow and since no one wants to have something like thumbs.db to clutter his machine the best solution remains to fix FileDialog.
Java 7 was supposed to bring these changes.
This is crucial for the future of Java as a viable rich client platorm.
I develop Swing applications but believe me I love everything that looks native and believe it or not native controls are more tested and have fewer bugs than complex components such as JFileChooser.

Carl Antaki

mrmorris

Posts: 88
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 13, 2008 2:53 PM   in response to: carcour
  Click to reply to this thread Reply

I concur. It often doesn't take more than a few secs to assert that you are using a Swing app, Every single time I want to open a file in NetBeans, I'm annoyed at it's constant desire to want to rename files.

dmitry_cherepanov

Posts: 5
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 14, 2008 3:21 AM   in response to: carcour
  Click to reply to this thread Reply

Yes, there are plans to add improved support for native file dialogs in JDK7.

Thanks,
Dmitry

carcour

Posts: 79
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 14, 2008 6:04 AM   in response to: dmitry_cherepanov
  Click to reply to this thread Reply

Thanks Dmitry. Do you have any idea when this will be included?

Carl

swpalmer

Posts: 244
Re: Are the updates to FileDialog coming in Java 7?
Posted: Mar 14, 2008 7:16 AM   in response to: dmitry_cherepanov
  Click to reply to this thread Reply

What about improvements to the Swing JFileDialog?

To what degree will we be able to customize the native file dialogs? (e.g. file filters, button text, etc.)

Will we be able to add an accessory component? (This appears to be possible on Windows with native dialogs, so I hope it will be available.)

Is it possible to use the native implementation just of the file list area (to get all the context menu goodies and icon decorations), but keep the Swing controls for the main dialog? I figured with the improved heavyweight/lightweight support in Java 7 this might actually make sense to try.

As you might expect - I need (or at least very much want) the features of JFileChooser. So while I recognise the need for the fidelity of the native file chooser - I can't loose the features with respect to what is available in the Swing version like I must with the current implementations.




 XML java.net RSS