Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2010, 09:25
west140
 
Fecha de Ingreso: mayo-2006
Mensajes: 101
Antigüedad: 18 años
Puntos: 2
Cambiar look and feel??

Que tal quiero actualizar la apariencia de mi aplicacion pero me manda un error

mi codigo es este:
Código HTML:
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {                                           
        Principal ventanaPrincipal = new Principal();
        System.out.println(jMenuItem3.getText());
        String look="";
               look= "org.jvnet.substance.skin.BusinessBlackSteelSkin";

        try {
          UIManager.setLookAndFeel( look );
          SwingUtilities.updateComponentTreeUI(ventanaPrincipal);
          dispose();
        } catch( Exception e ) {
          System.err.println( e.getMessage() );
          }
    }
y el error:
Código HTML:
cannot be cast to javax.swing.LookAndFeel

Última edición por west140; 21/05/2010 a las 09:31