You are not logged in.
I'm running XFCE, and I notice that all Swing-based Java applications use the ugly Swing button theme. When I used GNOME 3, some of them would adapt to the GNOME button theme (and would look like they belonged on the system).
Is this issue with XFCE, my current GTK theme (dorian), or Java, and how can I change this?
Last edited by 2mac (2014-01-01 22:17:07)
Offline
Have you set the GTK look and feel?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thank you for the information.
I followed the wiki by adding
export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"to my ~/.bashrc file.
To test, I launched the Minecraft launcher (one of the applications which does support style changes between desktops), and got back this information:
Picked up _JAVA_OPTIONS: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Error parsing gtk-icon-sizes string: ''And it had no effect. Any ideas?
Last edited by 2mac (2013-12-31 16:35:39)
Offline
Is this an issue with my GTK theme or with the way I passed the option?
Offline
I'm not really sure where to go next. That error message makes it clear the option is properly being picked up, and does seem to suggest that the GTK theme may be missing something, but I'm not too familiar with theming java/swing. Have you tried other gtk themes?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Try using '-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' instead; pretty much every Swing application I launch will give the "parsing gtk-icon-sizes string" error but appears correctly so I generally ignore it.
Offline
Resolved. Thank you very much.
Offline
@rainbowdashc
This is not working for me .. This works
" -J-Dawt.useSystemAAFontSettings=on -J-Dswing.aatext=true -J-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -J-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel "
Last edited by baronleonardo (2014-07-22 21:07:42)
Offline