On Mon, May 16, 2016 at 3:40 PM, Yanpas wrote:
> 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
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
tl;dr Drop the
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()) call
if you want to use the swing.defaultlaf as the System LAF is hardcoded
and selected by heuristics and swing.properties can't do anything about
it.
I took a look at the UIManager.java yesterday to get a
>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.
I have my own application (https://github.com/Yanpas/PdfMerger), which
manually
"_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
unfortunately this configuration file doesn't work. I am still to use
_JAVA_OPTIONS which is annoying, cause every time I start anything written in
Java I face a message "Picked up _JAVA_OPTIONS ...".
Fix at least this conf file!
--
You received this bug notification because you are a member
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
The GTK L has a few known issues and is not enabled by default. Please
see bug #183139.
You might try adding those properties to either
/etc/java-7-openjdk/swing.properties
/etc/java-8-openjdk/swing.properties,
** Also affects: openjdk-8 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1581835
Title:
Native Look and Feel for Swing does not work
To manage