Difference between revisions of "Set all Java apps to use GTK+ font & theme settings"

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}"
Anonymous user