[Bug 1581835] Re: Native Look and Feel for Swing does not work
yanp.bugz at gmail.com
Mon May 16 18:40:03 UTC 2016
Thanks for an answer!
I've got the principle of work. You've marked my bug as invalid - Is it
possible to see gtk laf on non-gnome DEs by default ? (I guess this
question should be adressed to openjdk developers). When will ubuntu
packages of openjdk be shiped with gtk laf by default? (which bugs
should I follow to track the status). And what will be the rules when
the bugs will be fixed? I imagine like this:
On Gnome DE (Gnome and Unity7): default LAF is gtk, using
make LAF "GTK"
On non-gnome DE (Xfce e. g.): default LAF is gtk, using
make LAF "SilverBlue".
The last one seems to be controversial. Avoiding of usage setLookAndFeel
will cause my app to look SilverBlue on Win/OSX and Native on Linux :)
I am able to rewrite my code, but there are apps like Yed, Logisim which
use setLookAndFeel, they look native everywhere except Ubuntu :(
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openjdk-8 in Ubuntu.
Native Look and Feel for Swing does not work
Status in openjdk-7 package in Ubuntu:
Status in openjdk-8 package in Ubuntu:
Openjdk-7 and openjdk-8 do not enable native look and feel by default. But they support it. Apps use ugly blue theme, even if the code contains "UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());"
I've tried Xubuntu 14.04, Ubuntu Mate 16.04 - apps look ugly. (for example logisim)
To get native LAF you need to use these arguments: _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
To manage notifications about this bug go to:
More information about the foundations-bugs