FlushImageExample -- reloading a 240-by-240 image
repeatedly from scratch because of image flushing.
Experiment:
- Note the paint counter in the bottom of the applet.
- Click anywhere in the image.
- Reduce the time between clicks until the repainting
thrashes incessantly.
- Comment out the
myImage.flush line in the
source file, recompile, and rerun the applet locally.
The source.