<Swing Dev> Native look and feel on linux
Yan
yanp.bugz at gmail.com
Sat May 14 11:39:11 UTC 2016
High!
I've noticed that openjdk doesn't respect native look and feel. I'm
using this method in my app:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
but only Oracle jre (on Windows) respects it and applies correct style.
On Linux I'm to use this env variable to get gtk integration:
_JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
OS : Ubuntu 14.04, kernel 4.2 (DE: MATE, Xfce)
Regards, Yan
More information about the swing-dev
mailing list