/*     */   public void paint(Graphics g2) {
/* 153 */     if (this.applet != null) return;
/*     */ 
/* 155 */     int w = getWidth() / 2;
/* 156 */     int h = getHeight() / 2;
/* 157 */     if ((this.img == null) || (this.img.getWidth() != w) || (this.img.getHeight() != h)) {
/* 158 */       this.img = createVolatileImage(w, h);
/*     */     }
/*     */ 
/* 161 */     Graphics g = this.img.getGraphics();
/* 162 */     for (int x = 0; x <= w / 16; x++) {
/* 163 */       for (int y = 0; y <= h / 16; y++)
/* 164 */         g.drawImage(this.bgImage, x * 16, y * 16, null);
/*     */     }
/* 166 */     g.setColor(Color.LIGHT_GRAY);
/*     */ 
/* 168 */     String msg = "Updating Minecraft";
/* 169 */     if (this.gameUpdater.fatalError) {
/* 170 */       msg = "Failed to launch";
/*     */     }
/*     */ 
/* 173 */     g.setFont(new Font(null, 1, 20));
/* 174 */     FontMetrics fm = g.getFontMetrics();
/* 175 */     g.drawString(msg, w / 2 - fm.stringWidth(msg) / 2, h / 2 - fm.getHeight() * 2);
/*     */ 
/* 177 */     g.setFont(new Font(null, 0, 12));
/* 178 */     fm = g.getFontMetrics();
/* 179 */     msg = this.gameUpdater.getDescriptionForState();
/* 180 */     if (this.gameUpdater.fatalError) {
/* 181 */       msg = this.gameUpdater.fatalErrorDescription;
/*     */     }
/*     */ 
/* 184 */     g.drawString(msg, w / 2 - fm.stringWidth(msg) / 2, h / 2 + fm.getHeight() * 1);
/* 185 */     msg = this.gameUpdater.subtaskMessage;
/* 186 */     g.drawString(msg, w / 2 - fm.stringWidth(msg) / 2, h / 2 + fm.getHeight() * 2);
/*     */ 
/* 188 */     if (!this.gameUpdater.fatalError) {
/* 189 */       g.setColor(Color.black);
/* 190 */       g.fillRect(64, h - 64, w - 128 + 1, 5);
/* 191 */       g.setColor(new Color(32768));
/* 192 */       g.fillRect(64, h - 64, this.gameUpdater.percentage * (w - 128) / 100, 4);
/* 193 */       g.setColor(new Color(2138144));
/* 194 */       g.fillRect(65, h - 64 + 1, this.gameUpdater.percentage * (w - 128) / 100 - 2, 1);
/*     */     }
/*     */ 
/* 197 */     g.dispose();
/*     */ 
/* 199 */     g2.drawImage(this.img, 0, 0, w * 2, h * 2, null);
/*     */   }