Mouse events
Click on the screen to detect where the actual applet is located. A black spot appears when you click
within the applet's canvas area.
This applet illustrates processing of mouse clicks. When the mouse is pressed, the
location of the click is returned to the program, and is used to draw a black "spot" on
the applet.