try {
//Lighter Skins
if (businessSkinMenuRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceBusinessLookAndFeel());
} else if (businessBlueSteelRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
} else if (businessBlackSteelSkinRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel());
} else if (cremeRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceCremeLookAndFeel());
} else if (cremeCoffeeRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceCremeCoffeeLookAndFeel());
} else if (saharaRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceSaharaLookAndFeel());
} else if (moderateRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceModerateLookAndFeel());
} else if (officeSilver2007RadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceOfficeSilver2007LookAndFeel());
} else if (officeBlue2007RadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceOfficeBlue2007LookAndFeel());
} else if (nebulaRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceNebulaLookAndFeel());
} else if (nebulaBrickWallRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceNebulaBrickWallLookAndFeel());
} else if (autumnRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceAutumnLookAndFeel());
} else if (mistSilverRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceMistSilverLookAndFeel());
} else if (mistAquaRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceMistAquaLookAndFeel());
} else if (dustRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceDustLookAndFeel());
} else if (dustCoffeeRadioButtonMenuItem1.isSelected()) {
UIManager.setLookAndFeel(new SubstanceDustCoffeeLookAndFeel());
} else if (geminiRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceGeminiLookAndFeel());
}
// Darker Skins
if (twilightRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceTwilightLookAndFeel());
} else if (magellanRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceMagellanLookAndFeel());
} else if (ravenGraphiteRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceRavenGraphiteLookAndFeel());
} else if (ravenGraphiteGlassRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceRavenGraphiteGlassLookAndFeel());
} else if (graphiteAquaRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceGraphiteAquaLookAndFeel());
} else if (ravenRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceRavenLookAndFeel());
} else if (magmaRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceMagmaLookAndFeel());
} else if (challengerDeepRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceChallengerDeepLookAndFeel());
} else if (emeraldDuskRadioButtonMenuItem.isSelected()) {
UIManager.setLookAndFeel(new SubstanceEmeraldDuskLookAndFeel());
}
if (systemDefaultSkinRadioButtonMenuItem.isSelected()) {
// Set Program Default L&F
UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
}
getFrame().setVisible(false);
SwingUtilities.updateComponentTreeUI(getComponent());