java.awt.event

Class MouseAdapter

public abstract class MouseAdapter extends Object implements MouseListener

This class implements MouseListener and implements all methods with empty bodies. This allows a listener interested in implementing only a subset of the MouseListener interface to extend this class and override only the desired methods.

Since: 1.1

See Also: MouseEvent MouseListener

UNKNOWN: updated to 1.4

Constructor Summary
MouseAdapter()
Do nothing default constructor for subclasses.
Method Summary
voidmouseClicked(MouseEvent event)
Implements this method in the interface with an empty method body.
voidmouseEntered(MouseEvent event)
Implements this method in the interface with an empty method body.
voidmouseExited(MouseEvent event)
Implements this method in the interface with an empty method body.
voidmousePressed(MouseEvent event)
Implements this method in the interface with an empty method body.
voidmouseReleased(MouseEvent event)
Implements this method in the interface with an empty method body.

Constructor Detail

MouseAdapter

public MouseAdapter()
Do nothing default constructor for subclasses.

Method Detail

mouseClicked

public void mouseClicked(MouseEvent event)
Implements this method in the interface with an empty method body.

Parameters: event the event, ignored in this implementation

mouseEntered

public void mouseEntered(MouseEvent event)
Implements this method in the interface with an empty method body.

Parameters: event the event, ignored in this implementation

mouseExited

public void mouseExited(MouseEvent event)
Implements this method in the interface with an empty method body.

Parameters: event the event, ignored in this implementation

mousePressed

public void mousePressed(MouseEvent event)
Implements this method in the interface with an empty method body.

Parameters: event the event, ignored in this implementation

mouseReleased

public void mouseReleased(MouseEvent event)
Implements this method in the interface with an empty method body.

Parameters: event the event, ignored in this implementation