/** * Paint the drawing surface on the applet. * * @param g A graphics object */ public void paint(Graphics g) { buffG.clearRect(0, 0, getWidth(), getHeight()); canvas.paint(buffG); g.drawImage(buff, 0, 0, this); }