void drawLoadingText(int percentage, String s) {
		while (gameGraphics == null) {
			gameGraphics = getGameComponent().getGraphics();
			try {
				getGameComponent().repaint();
			} catch (Exception _ex) {
			}
			try {
				Thread.sleep(1000L);
			} catch (Exception _ex) {
			}
		}
		Font helveticaBold = new Font("Helvetica", 1, 13);
		FontMetrics fontmetrics = getGameComponent().getFontMetrics(
				helveticaBold);
		Font helvetica = new Font("Helvetica", 0, 13);
		getGameComponent().getFontMetrics(helvetica);
		if (clearScreen) {
			gameGraphics.setColor(Color.black);
			gameGraphics.fillRect(0, 0, width, height);
			clearScreen = false;
		}
		Color color = new Color(140, 17, 17);
		int centerHeight = height / 2 - 18;
		gameGraphics.setColor(color);
		gameGraphics.drawRect(width / 2 - 152, centerHeight, 304, 34);
		gameGraphics.fillRect(width / 2 - 150, centerHeight + 2,
				percentage * 3, 30);
		gameGraphics.setColor(Color.black);
		gameGraphics.fillRect((width / 2 - 150) + percentage * 3,
				centerHeight + 2, 300 - percentage * 3, 30);
		gameGraphics.setFont(helveticaBold);
		gameGraphics.setColor(Color.white);
		gameGraphics.drawString(s, (width - fontmetrics.stringWidth(s)) / 2,
				centerHeight + 22);
	}