← Back to team overview

openjdk team mailing list archive

[Bug 1581835] Re: Native Look and Feel for Swing does not work

 

"_JAVA_OPTIONS trumps command-line arguments, which in turn trump
JAVA_TOOL_OPTIONS" (see http://stackoverflow.com/a/30305597/1153136)

If the Java application is not using the default LAF as defined by
/etc/java-X-openjdk/swing.properties and its LAF can only be changed
through _JAVA_OPTIONS then it means the application is setting LAF by
itself. This is not related to OpenJDK and there is nothing we can do on
OpenJDK packaging to change that.

If relying on _JAVA_OPTIONS is not a solution for you, then you need to
open a bug against each Java application and request that they provide a
way to load the default LAF set by the user instead of overwriting it on
its own.

As this is not an OpenJDK bug I will be closing it as invalid.


** Changed in: openjdk-7 (Ubuntu)
       Status: New => Invalid

** Changed in: openjdk-8 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1581835

Title:
  Native Look and Feel for Swing does not work

Status in openjdk-7 package in Ubuntu:
  Invalid
Status in openjdk-8 package in Ubuntu:
  Invalid

Bug description:
  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:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1581835/+subscriptions


References