Difference between revisions of "Set all Java apps to use GTK+ font & theme settings"
Set all Java apps to use GTK+ font & theme settings (view source)
Revision as of 14:02, 11 March 2017
, 7 years ago→How do you do it?
imported>Photon (→How do you do it?: Changed _JAVA_OPTIONS definition as proposed by Tids) |
imported>Photon |
||
Line 28: | Line 28: | ||
3) Start your Java app to check the result. | 3) Start your Java app to check the result. | ||
4) If, for some reason, the entry in '''~/.profile''' or '''/etc/profile''' had no effect, you can put the following line into '''/etc/environment''': | 4) If, for some reason, the entry in '''~/.profile''' or '''/etc/profile.d/90-java_ops.sh''' had no effect, you can put the following line into '''/etc/environment''': | ||
_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 ${_JAVA_OPTIONS}" | _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 ${_JAVA_OPTIONS}" |