Mouse Listener Interface:
This interface declares five methods. mouseCliked( ) is invoked if the mouse is pressed and released at the similar point. When the mouse enters a component the mouseEntered ( ) methods is called. When it leaves than mouseExited ( ) is called. The mousePressed ( ) and mouseRelased ( ) methods are invoked when the mouse is pressed and released correspondingly.
The common forms of these methods are displays here:
Syntax: void mouseClicked(MouseEvent me)
Syntax: void mouseEntered (MouseEvent me)
Syntax: void mouseExited(MouseEvent me)
Syntax: void mousePressed(MouseEvent me)
Syntax: void mouseReleased (mouseEvent me)