je voudrais changer la taille de police de mon texte via la boite de police
comment faire?
mon code
police=new JFontChooser(new DFont("Arial",Font.Regular,12));
if( police.showDialog(this."choix police")==JFontChooser.ACCEPT_OPTION){
txtTexte.setFont(police.getSelectedFont());
}
Partager