Package org.spoutcraft.launcher.skin

Examples of org.spoutcraft.launcher.skin.MetroLoginFrame


      logger.info("Internet validation and look and feel took " + (System.currentTimeMillis() - start) + " ms");
      start = System.currentTimeMillis();
    }

    // Set up the launcher and load login frame
    LoginFrame frame = new MetroLoginFrame();

    try {
      @SuppressWarnings("unused")
      Launcher launcher = new Launcher(new GameUpdater(), new GameLauncher(), frame);
    } catch (IOException failure) {
      failure.printStackTrace();
      ErrorDialog dialog = new ErrorDialog(frame, failure);
      splash.dispose();
      frame.setVisible(true);
      dialog.setAlwaysOnTop(true);
      dialog.setVisible(true);
      return;
    }
    Launcher.getGameUpdater().start();

    if (Settings.isDebugMode()) {
      logger.info("Loading default launcher skin took " + (System.currentTimeMillis() - start) + " ms");
      start = System.currentTimeMillis();
    }

    splash.dispose();
    frame.setVisible(true);
    if (params.hasAccount()) {
      frame.disableForm();
      frame.doLogin(params.getUser(), params.getPass());
    }

    logger.info("Launcher startup took " + (System.currentTimeMillis() - startupTime) + "ms");
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.launcher.skin.MetroLoginFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.