Difference between revisions of "Set all Java apps to use GTK+ font & theme settings"
Views
Actions
Namespaces
Variants
Tools
Set all Java apps to use GTK+ font & theme settings (view source)
Revision as of 22:39, 23 May 2019
, 5 years agoMoved links to See Also section & general cleanup
imported>Photon |
imported>Dalto (Moved links to See Also section & general cleanup) |
||
Line 12: | Line 12: | ||
=How do you do it?= | =How do you do it?= | ||
Set the variable '''_JAVA_OPTIONS''' by running this command in a terminal: | |||
export _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}" | export _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}" | ||
First test to see if the outcome is what you expect by running your Java app from the same terminal window. | |||
If the result looks good to you, let us make the changes permanent: | If the result looks good to you, let us make the changes permanent: | ||
Append the above definition of the '''_JAVA_OPTIONS''' variable to '''~/.profile''' (for your user only) or '''/etc/profile.d/90-java_ops.sh''' (system-wide). In both cases, if the file does not exist, create it. | |||
=See Also= | |||
* [http://askubuntu.com/questions/21886/how-can-i-get-a-java-apps-to-use-the-gtk-theme How can I get a java apps to use the GTK+ theme?(askubuntu)] | |||
* Related [https://forum.manjaro.org/t/wiki-set-all-java-apps-to-use-gtk-font-theme-settings/19305 forum post] | |||
<br clear="all"/> | <br clear="all"/> | ||
[[Category:Contents Page]] | [[Category:Contents Page]] | ||