![]() |
A simple animation applet. This version plays by the rules, drawing only from within the paint() routine. All the thread routine does is repeatedly ask for repaints. Because of the extra overhead and because multiple repaint requests can get combined into one call to paint(), this version runs fairly slowly.