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

JFileChooser looks like the old Windows XP file chooser

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      JFileChooser/WindowsFileChooserUI doesn't support Windows's new file chooser design (since Windows Vista).

      JFileChooser looks like this: http://i.stack.imgur.com/oMQKN.png
      But the native file file chooser on Windows 7 looks like this: http://i.stack.imgur.com/lNOWC.png

      The main difference is the navigation tree on the left instead of the places bar and the address bar on the top instead of the combobox.

      JUSTIFICATION :
      A WinXP-style file chooser looks ugly in Windows Vista, 7, 8, or 10 environment. Windows Vista has released 9 years ago and Java still has the old file chooser, even if Windows XP is not supported by Java.


      ---------- BEGIN SOURCE ----------
      import javax.swing.JFileChooser;
      import javax.swing.UIManager;

      public class FileChooserTest {

          public static void main(String[] args) throws Exception {
              UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
              new JFileChooser().showOpenDialog(null);
          }

      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      - use SWT
      - use custom FileChooserUI

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: