The previous animations exhibit a noticeable flicker caused by the continuous clearing and repainting of the applet window |
Flicker can be avoided by double buffering |
A buffer is an off-screen graphics image |
All drawing is done in the buffer, which is then copied to the applet window as a last step |