Actions
Bug #14481
openOpenJDK 11 UIManager.getSystemLookAndFeelClassName() returns Motif not GTK
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Description
UIManager.getSystemLookAndFeelClassName() currently returns "com.sun.java.swing.plaf.motif.MotifLookAndFeel". This is incorrect because OpenIndiana desktop is Mate, which is based on GTK+.
If the Java look and feel is set to GTK+, the Java app looks consistent with the rest of the desktop apps.
UIManager.getSystemLookAndFeelClassName() should return "com.sun.java.swing.plaf.gtk.GTKLookAndFeel".
Files
Updated by Bill Chatfield over 1 year ago
- File PlafLister.class PlafLister.class added
- File lsplaf.sh lsplaf.sh added
Updated by Bill Chatfield over 1 year ago
This output shows that the wrong system look and feel is being returned:
bill@andrewsarchus:~/git/utils/java/classes$ ./lsplaf.sh
Metal javax.swing.plaf.metal.MetalLookAndFeel
Nimbus javax.swing.plaf.nimbus.NimbusLookAndFeel
CDE/Motif com.sun.java.swing.plaf.motif.MotifLookAndFeel (System)
GTK+ com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Updated by Bill Chatfield over 1 year ago
These environment variables identify the desktop environment being used:
XDG_CURRENT_DESKTOP=MATE XDG_SESSION_DESKTOP=mate
Updated by Bill Chatfield over 1 year ago
The Target version should be 2021.10. I can't find a way to change it now.
Actions