/*     */   public LauncherFrame()
/*     */   {
/*  24 */     super("CommunityCraft");
/*     */ 
/*  26 */     setBackground(Color.BLACK);
/*  27 */     this.loginForm = new LoginForm(this);
/*  28 */     setLayout(new BorderLayout());
/*  29 */     add(this.loginForm, "Center");
/*     */ 
/*  31 */     this.loginForm.setPreferredSize(new Dimension(854, 480));
/*  32 */     pack();
/*  33 */     setLocationRelativeTo(null);
/*     */     try
/*     */     {
/*  36 */       setIconImage(ImageIO.read(LauncherFrame.class.getResource("favicon.png")));
/*     */     } catch (IOException e1) {
/*  38 */       e1.printStackTrace();
/*     */     }
/*     */ 
/*  41 */     addWindowListener(new WindowAdapter() {
/*     */       public void windowClosing(WindowEvent arg0) {
/*  43 */         new Thread() {
/*     */           public void run() {
/*     */             try {
/*  46 */               Thread.sleep(30000L);
/*     */             } catch (InterruptedException e) {
/*  48 */               e.printStackTrace();
/*     */             }
/*  50 */             System.out.println("FORCING EXIT!");
/*  51 */             System.exit(0);
/*     */           }
/*     */         }
/*  54 */         .start();
/*  55 */         if (LauncherFrame.this.launcher != null) {
/*  56 */           LauncherFrame.this.launcher.stop();
/*  57 */           LauncherFrame.this.launcher.destroy();
/*     */         }
/*  59 */         System.exit(0);
/*     */       } } );
/*     */   }