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

Created page with "Voir également"
(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|<span lang="en" dir="ltr" class="mw-content-ltr">Introduction</span>|2=
{{SectionTemplate|Introduction|2=
<div lang="en" dir="ltr" class="mw-content-ltr">
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 :
This fix makes your Java apps use your GTK+ theme (colours & such) & your chosen font settings. Here is how it looks like:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{FlexSideContainerTemplate|
{{FlexSideContainerTemplate|
[[File:Java_default_look.png|thumb|none|400px|Before the fix]]
[[File:Java_default_look.png|thumb|none|400px|Avant la correction]]
|
|
[[File:Java_GTK_look.png|thumb|none|400px|After the fix]]
[[File:Java_GTK_look.png|thumb|none|400px|Après la correction]]
|1|1}}
|1|1}}}}
</div>}}


{{SectionTemplate|<span lang="en" dir="ltr" class="mw-content-ltr">How do you do it?</span>|2=
{{SectionTemplate|Comment procéder ?|2=
<div lang="en" dir="ltr" class="mw-content-ltr">
Définissez la variable '''_JAVA_OPTIONS''' en exécutant cette commande dans un terminal :
Set the variable '''_JAVA_OPTIONS''' by running this command in a terminal:
</div>


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


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
First test to see if the outcome is what you expect by running your Java app from the same terminal window.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Si le résultat vous semble satisfaisant, nous pouvons rendre les changements permanents :
If the result looks good to you, let us make the changes permanent:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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.
</div>
}}
}}


{{SectionTemplate|
{{SectionTemplate|
[[File:Chmsee-icon.png|left|36px]]
[[File:Chmsee-icon.png|left|36px]]
<span lang="en" dir="ltr" class="mw-content-ltr">See Also</span>|
Voir également|
<div lang="en" dir="ltr" class="mw-content-ltr">
* [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 How can I get a java apps to use the GTK+ theme?(askubuntu)]}}
</div>
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]
555

edits