JFileChooser with missing Windows7 buttons

I managed to create JFileChooserwindows with the following code in the image

try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {     }

But when JFileChooser appears, it has no buttons to the right of the file name drop-down menu. Buttons that are absent are on the same level, creating new buttons "Folder", "View List" and "Details".

Any ideas on how I can get them back?

Thank!

+3
source share
5 answers

It seems that the problem with my computer is that when I run this program on other computers, buttons appear. Hover over your mouse.

+1
source

JFileChooseris not a native dialogue. Actually there is nothing in Swing.

, SWT Swing.

+1

JRE 1.6.0 18. , : : 6840086 JFileChooser Windows 7.

​​ JRE: 1.6.0 22.

+1

, ? , e.printStackTrace() catch 100% ,

0

1.6_0.25-b06. thread Oracle.

, NetBeans JDK 1.6.13. JDK 1.6.25 netbean + NetBeans.

0

Source: https://habr.com/ru/post/1733233/


All Articles