Problem: The Flicker
As written, the applet works o.k., but has an annoying flicker.
What’s causing this? Well, each call to paint causes Java to whipe out the entire canvas, before our code even gets executed.
Our canvas is therefore redrawn twice--once with a white wash, and a second time with our background.