try {
// Set to OS-LAF
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
// Activating new Design
SwingUtilities.updateComponentTreeUI(comp);
SwingUtilities.updateComponentTreeUI(MainFrame.mainPopup);
SwingUtilities.updateComponentTreeUI(MainFrame.solutionPanePopup);
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
} catch (UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
} catch (IllegalAccessException ex) {
ex.printStackTrace();
}