Difference between revisions of "Set all Java apps to use GTK+ font & theme settings/fa"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
K2latmanesh (talk | contribs) |
K2latmanesh (talk | contribs) Tags: Mobile web edit Mobile edit |
||
| Line 25: | Line 25: | ||
{{SectionTemplate|جستار های وابسته| | {{SectionTemplate|جستار های وابسته| | ||
* [http://askubuntu.com/questions/21886/how-can-i-get-a-java-apps-to-use-the-gtk-theme چگونه میتوانم برنامههای جاوا را طوری تنظیم کنم که از قالب GTK+ استفاده کنند؟ (askubuntu)] | * [http://askubuntu.com/questions/21886/how-can-i-get-a-java-apps-to-use-the-gtk-theme چگونه میتوانم برنامههای جاوا را طوری تنظیم کنم که از قالب GTK+ استفاده کنند؟ (askubuntu)] | ||
* [https://forum.manjaro.org/t/wiki-set-all-java-apps-to-use-gtk-font-theme-settings/19305 | * [https://forum.manjaro.org/t/wiki-set-all-java-apps-to-use-gtk-font-theme-settings/19305 فرستهٔ انجمن] مرتبط با این موضوع|Chmsee-icon.png}} | ||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] | ||
Revision as of 06:54, 13 February 2022
This fix makes your Java apps use your GTK+ theme (colours & such) & your chosen font settings. Here is how it looks like:
متغیر 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.
اگر نتایج مورد تایید شما هست، بیایید تغییرات را دائمی کنیم:
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.
