Bonjour,
J'aurais voulu savoir s'il y a vait un moyen pour choisir la police par défaut d'une application Java ou de modifier celle d'un look&feel.
J'ai essayé:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
 try
     {UIManager.setLookAndFeel ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");}
     catch(Exception e)
     {SwingUtilities.updateComponentTreeUI (getContentPane());}
 
    this.setFont(new Font(this.getFont().getFamily(), Font.PLAIN, 9));
ou this ma JFrame principale, mais ça ne marche et il n'y a pas de méthodes 'setFont' dans UIManager donc je ne sais pas trop ou chercher...
Merci