How to move an image over another

Applet Source: Checker.java    checker.html
Additional Source: ImageTest.java

Notes:

  1. These examples use double buffering but not clipping. You can get smoother action and avoid the paint queue by clipping.
  2. This is a workable solution to the problem of placing one image on top of another but may not be the best. This is intended to get people started.
  3. directions: press the mouse button when the mouse cursor is over the checker. Keep the button pressed and move the mouse to move the checker. Release the mouse button to drop the checker and leave it where it is.