This applet uses a MediaTracker to wait until all the animation's frames are loaded before it displays the animation.

Because the update() method is not overrided, the paint() method clears the applet's panel between frames. This introduces flicker.

Go back to Notes

 
<div align="center"><a href="../../../versionC/index.html" title="DKIT Lecture notes homepage for Derek O&#39; Reilly, Dundalk Institute of Technology (DKIT), Dundalk, County Louth, Ireland. Copyright Derek O&#39; Reilly, DKIT." target="_parent" style='font-size:0;color:white;background-color:white'>&nbsp;</a></div>