componentToSwitch = c;
String name = e.getPropertyName(); if (name.equals("lookAndFeel")) { SwingUtilities.updateComponentTreeUI(componentToSwitch); componentToSwitch.invalidate(); componentToSwitch.validate(); componentToSwitch.repaint(); }