JDK-6867347 : JFileChooser missing buttons on Windows 7
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u14
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2009-07-31
  • Updated: 2011-02-16
  • Resolved: 2009-09-15
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
jdk 1.6.0_14 

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7100]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Using latest nVidia display drivers for Windows 7, although bug is reproducible on all Windows 7 systems.

A DESCRIPTION OF THE PROBLEM :
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 (or any Windows 7) 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.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Code example enclosed.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Buttons should be visible.

REPRODUCIBILITY :
This bug can be reproduced always.