public static void setLookAndTheme(LookAndFeel laf, Object theme) throws UnsupportedLookAndFeelException { if ((laf instanceof PlasticLookAndFeel) && (theme != null) && (theme instanceof PlasticTheme)) { PlasticLookAndFeel.setPlasticTheme((PlasticTheme) theme); } UIManager.setLookAndFeel(laf); }
public void actionPerformed(ActionEvent event) { PlasticLookAndFeel.setPlasticTheme(new ProtegePlasticTheme()); super.actionPerformed(event); }