private void animateNextFrame() {
		// Animate next frame on buffer
		Graphics2D g = (Graphics2D) buffer.getDrawGraphics();
		drawFrame(g);
		// Display the buffer
		if (!buffer.contentsLost()) {
			buffer.show();
		}
		g.dispose();
		// Repainting solves the problem of the applet not updating properly
		// on the Red Hat Linux computers.
		repaint();
	}