try {
UIManager.setLookAndFeel(lookAndFeel.getClassName());
SwingUtilities.updateComponentTreeUI(this);
this.lookAndFeel = lookAndFeel;
} catch (Exception e) {
GanttLookAndFeelInfo info = GanttLookAndFeels
.getGanttLookAndFeels().getDefaultInfo();
System.out.println("Can't find the LookAndFeel\n"
+ lookAndFeel.getClassName() + "\n" + lookAndFeel.getName()
+ "\nSetting the default Look'n'Feel" + info.getName());
try {
UIManager.setLookAndFeel(info.getClassName());
SwingUtilities.updateComponentTreeUI(this);
this.lookAndFeel = info;
} catch (Exception ex) {
}
}