code: public static void initLookAndFeel(final String className) {
          if (SwingUtilities.isEventDispatchThread()) {
              initLookAndFeelIntern(className);
          } else {
              try {
                  SwingUtilities.invokeAndWait(new Runnable() {
                      public void run() {
                          initLookAndFeelIntern(className);
                      }
                  });
              } catch (final Exception ex) {
                  throw new RuntimeException(ex);
              }
          }
      }
docs: Initializes the look and feel and wraps exceptions into a runtime
  exception. If this method is called outside the EDT it will switch
  automatically to the UI thread using <code>invokeAndWait(Runnable)</code>
  .
  
  @param className
  Full qualified name of the look and feel class.