This applet demonstrates the use of the MouseListener interface to handle mouse clicks in an applet. Whenever you click the mouse in the applet, the circle will move to the new mouse coordinates.

The source.