-
Enhancement
-
Resolution: Unresolved
-
P4
-
8u91
-
x86
-
other
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
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