miércoles, marzo 07, 2007

Cómo cambiar el Look and Feel ???

Este es el código a modificar en tu main ( letras en negrita ) :

public static void main(String args[]) {

try{ UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName());
new Emergencia().setVisible(true);
}catch(Exception e){
JOptionPane.showMessageDialog(null,e, "Error",1);
}// fin de try & catch

}// fin de main

El look & feel q se mostrará es el q tengas en tu Windows :