555
edits
(Created page with "export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java....") Tags: Mobile web edit Mobile edit |
(Created page with "Voir également") Tags: Mobile web edit Mobile edit |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
{{SectionTemplate| | {{SectionTemplate|Introduction|2= | ||
Cette correction permet à vos applications Java d'utiliser votre thème GTK+ (couleurs et autres) et les paramètres de police que vous avez choisis. Voici à quoi cela ressemble : | |||
{{FlexSideContainerTemplate| | {{FlexSideContainerTemplate| | ||
[[File:Java_default_look.png|thumb|none|400px| | [[File:Java_default_look.png|thumb|none|400px|Avant la correction]] | ||
| | | | ||
[[File:Java_GTK_look.png|thumb|none|400px| | [[File:Java_GTK_look.png|thumb|none|400px|Après la correction]] | ||
|1|1}} | |1|1}}}} | ||
{{SectionTemplate| | {{SectionTemplate|Comment procéder ?|2= | ||
Définissez la variable '''_JAVA_OPTIONS''' en exécutant cette commande dans un 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}" | ||
Testez d'abord si le résultat est conforme à vos attentes en exécutant votre application Java à partir de la même fenêtre de terminal. | |||
Si le résultat vous semble satisfaisant, nous pouvons rendre les changements permanents : | |||
Ajoutez la définition ci-dessus de la variable '''_JAVA_OPTIONS''' à '''~/.profile''' (pour votre utilisateur uniquement) ou '''/etc/profile.d/90-java_ops.sh''' (pour l'ensemble du système). Dans les deux cas, si le fichier n'existe pas, créez-le. | |||
}} | }} | ||
{{SectionTemplate| | {{SectionTemplate| | ||
[[File:Chmsee-icon.png|left|36px]] | [[File:Chmsee-icon.png|left|36px]] | ||
Voir également| | |||
* [http://askubuntu.com/questions/21886/how-can-i-get-a-java-apps-to-use-the-gtk-theme Comment faire pour qu'une application java utilise le thème GTK+ ? (askubuntu)]}} | |||
* [http://askubuntu.com/questions/21886/how-can-i-get-a-java-apps-to-use-the-gtk-theme | |||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] |
edits