Calls super.paint(g) to have the parent class clear the component. And for what its worth, I encourage you to use Swing rather than AWT (Swing components start with 'J', so JApplet, JPanel, etc...and...