Class c = Class.forName(className); LookAndFeel a = (LookAndFeel) c.newInstance(); setLookAndFeel(a);
if (! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName());  if (look_and_feel != null) look_and_feel.uninitialize();   look_and_feel = newLookAndFeel; look_and_feel.initialize();
  public static void setLookAndFeel (String className)    throws ClassNotFoundException, InstantiationException, IllegalAccessException,    UnsupportedLookAndFeelException  {    Class c = Class.forName(className);    LookAndFeel a = (LookAndFeel) c.newInstance(); // throws class-cast-exception    setLookAndFeel(a);  }