net.sourceforge.javydreamercsw.client.ui.Installer Maven / Gradle / Ivy
package net.sourceforge.javydreamercsw.client.ui;
import javax.swing.UnsupportedLookAndFeelException;
import org.openide.modules.ModuleInstall;
import org.openide.util.Exceptions;
public class Installer extends ModuleInstall {
@Override
public void restored() {
//Start Look and Feel
for (javax.swing.UIManager.LookAndFeelInfo info
: javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
try {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
Exceptions.printStackTrace(ex);
}
}
}
}
}