Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6867347

JFileChooser missing buttons on Windows 7

XMLWordPrintable

      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.

            rupashka Pavel Porvatov (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: