Try overriding the update function of Applet:public void update(Graphics g) {paint(g);}Usually update first clears the display area and then calls paint().