Ray da Costa

« Java no Brasil | Home | Meu Sistema Operacional do Coração »

Atualizar UIManager.setLookAndFeel

de raydacosta | Terça, 16 de Setembro de 2008

Listar:

UIManager.LookAndFeelInfo[] infolocal = UIManager.getInstalledLookAndFeels();
for (int i=0; i String humanReadableName = infolocal[i].getName();
String className = infolocal[i].getClassName();
System.out.println(className);
nomesLook.add(humanReadableName);
this.info.put(humanReadableName,className);
}

public void atualiza(int i){
try {
UIManager.setLookAndFeel(looks[i].getClassName());
SwingUtilities.updateComponentTreeUI(this);
}catch(Exception e) {
e.printStackTrace();
}
}

Categorias: J2SE |  | Enviar por e-mail  | Hits para esta publicação: 144

Deixe uma resposta.