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() ); } }
Código HTML:
cannot be cast to javax.swing.LookAndFeel