@Override
	public void onRepaint(Graphics g1)
	{
		if (Variables.started)
		{
			if (bgImage == null)
				bgImage = getImage(Variables.bgLink);
			if (cursor == null)
				cursor = getImage(Variables.cursorLink);
			
			Graphics2D g = (Graphics2D)g1;
			
			g.setColor(color1);
			g.fillRect(5, 393, 507, 114);
			g.setColor(color2);
			g.setStroke(stroke1);
			g.drawRect(5, 393, 507, 114);
			g.drawImage(bgImage, 5, 393, null);
			
			g.setColor(color2);
			g.drawOval(109 + (Variables.oreSelectIndex*50), 463, 45, 45);
			
			Functions.printCenter(g, (double)Variables.bars > 999 ? String.format("%.2fk", ((double)Variables.bars)/1000.0) : String.format("%.0f", (double)Variables.bars), 109+(Variables.oreSelectIndex*50), 463+23, 50);
			//g.drawString((double)Variables.bars > 999 ? String.format("%.2fk", ((double)Variables.bars)/1000.0) : String.format("%.0f", (double)Variables.bars), 109+5 + (Variables.oreSelectIndex*50), 463+10);
			
			g.setFont(new Font("Dialog", Font.PLAIN, 15));
			Functions.printRight(g, Variables.timer.toElapsedString(), 475, 415);
			
			Functions.printRight(g, ((double)Variables.profit > 50000 ? String.format("%.2fk", ((double)Variables.profit)/1000.0) : String.format("%.0f", (double)Variables.profit))
					+ "("
					+ (Functions.perHour((double)Variables.profit) > 8500 ? String.format("%.2fk/hr", Functions.perHour((double)Variables.profit)/1000.0) : String.format("%.1f/hr", Functions.perHour((double)Variables.profit)))
					+ ")"
					, 475, 437);
			
			Functions.printRight(g, (Variables.expGained > 8500 ? String.format("%.2fk", Variables.expGained/1000.0) : String.format("%.1f", Variables.expGained)
					+ "("
					+(Functions.perHour(Variables.expGained) > 8500 ? String.format("%.2fk/hr", Functions.perHour(Variables.expGained)/1000.0) : String.format("%.1f/hr", Functions.perHour(Variables.expGained))))
					+ ")"
					, 475, 460);
			
			g.drawImage(cursor, Mouse.getX(), Mouse.getY(), null);
		}
	}