BusyRepaintExample -- avoiding an overly busy repaint loop by sleeping between calls to repaint.

On either a SPARCstation 5 or 20, the minimum workable sleep time is 5 milliseconds. Note also that this applet runs animation in a separate thread.

Experiment:



The source.