
Useful Methods of the MouseEvent Class
Return value Method name and argument list
int getX( )
returns the x value of the (x,y) coordinate of the mouse activity.
int getY( )
returns the y value of the (x,y) coordinate of the mouse activity.
MouseListener Interface
Package: java.awt.event
Description: interface implemented by a class that will handle
MouseEvents (press, release, click, enter, exit).
Interface Methods to be Implemented
public void mouseClicked( MouseEvent e )
called when the mouse button is pressed and released on a
registered component.
public void mouseEntered( MouseEvent e )
called when the mouse enters a registered component.
public void ...