An Image in an Applet
Previous    Next    Home    Source    Package

  1. Now we can drag the checker across the board. Unfortunately, when the checker is first "grabbed" it jumps because the origin of the image is its upper left corner - the mouse position needs to be there. So, if the mouse position does not change then the checker position must change.