@Override
    public void paint(Graphics g) {
	int width = getWidth();
	int height = getHeight();
	BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
	Graphics2D g2d = (Graphics2D)image.createGraphics();
	g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
	g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
	g2d.setColor(Color.BLACK);
	g2d.fillRect(0, 0, getWidth(), getHeight());
	if (mapRenderer != null)
	    mapRenderer.render(g2d, width, height);
	if (Client.instance.currentScreen != null)
	    Client.instance.currentScreen.render(g2d, width, height);
	g2d.dispose();
	
	g.drawImage(image, 0, 0, null);
    }