<Swing Dev> Native look and feel on linux [2]
Alexey Ivanov
alexey.ivanov at oracle.com
Tue May 24 12:49:10 UTC 2016
Hi Yan,
You can put swing.properties file to <JRE>/lib directory as described
here:
https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#properties
The contents of the file would be:
swing.systemlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
This property file will set GTK LaF for all applications that use this
JRE to run.
Regards,
Alexey
On 24.05.2016 14:35, Yan wrote:
>> Did you try to use
> -Dswing.systemlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel?
>
> Yes, I've tried this, it works for jar files, but what I have to do with
> other software like logisim on my system? Find every jar for every
> program, edit sh scripts? Sounds scary.
>
> Passing args is a dirty workaround. There is still no way to tell
> openjdk to use GTK LAF as System default.
>
> Regards, Yan
More information about the swing-dev
mailing list