mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
26.44.2008 84a9ed122623fd49e5dd6f448822723281518975
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
@@ -725,17 +725,37 @@
  {
    if (!initialized)
    {
      System.setProperty("swing.aatext", "true");
      try
      Runnable r = new Runnable()
      {
        UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName());
      } catch (Exception ex)
        public void run()
        {
          System.setProperty("swing.aatext", "true");
          try
          {
            UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName());
          } catch (Throwable t)
          {
            t.printStackTrace();
          }
          JFrame.setDefaultLookAndFeelDecorated(false);
        }
      };
      if (SwingUtilities.isEventDispatchThread())
      {
        ex.printStackTrace();
        r.run();
      }
      JFrame.setDefaultLookAndFeelDecorated(false);
      else
      {
        try
        {
          SwingUtilities.invokeAndWait(r);
        }
        catch (Throwable t)
        {
          t.printStackTrace();
        }
      }
      initialized = true;
    }
  }