Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jfilechooser missing buttons on windows 7

843806Jul 26 2009 — edited Aug 26 2009
JFileChooser appears to be missing several buttons when displayed with the system look and feel on Windows 7. The missing buttons are 'Up One Level', 'Create New Folder', and 'Details'. The 'List' button is visible but is missing its icon. The other buttons are completely invisible but the tooltips for the missing buttons show up when the mouse is hovering in the correct area of the button.

The following will produce the issue on my machine:

import javax.swing.*;

public class JFileChooserTest {
public static void main( String[] args ) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JFileChooser foo = new JFileChooser();
foo.showOpenDialog(null);
}
catch ( Exception ex ) {}
}
}

I'm using jdk 1.6.0_14, which is supposedly 'Windows 7 ready' and running with the latest nVidia display drivers for Windows 7. I also see this issue with other 1.6.0_xx jdk's.

Has anyone else seen this behavior?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2009
Added on Jul 26 2009
4 comments
159 views