You seem to be running a version of JDK provided by a distro (Ubuntu)
so you should talk to them since OpenJDK is a SOURCE project and
does not produce binaries at all. Also you have a incredibly ancient
version.
OpenJDK has source to provide a GTK L&F and as compiled by me it works
so you need to go to a different list to ask this. Probably an Ubuntu one.
-phil.
On 5/14/16, 4:39 AM, Yan wrote:
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