public abstract class MouseAdapter extends Object implements MouseListener
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.MouseEvent,
MouseListener| Constructor and Description |
|---|
MouseAdapter()
Do nothing default constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(MouseEvent event)
Implements this method in the interface with an empty method body.
|
void |
mouseEntered(MouseEvent event)
Implements this method in the interface with an empty method body.
|
void |
mouseExited(MouseEvent event)
Implements this method in the interface with an empty method body.
|
void |
mousePressed(MouseEvent event)
Implements this method in the interface with an empty method body.
|
void |
mouseReleased(MouseEvent event)
Implements this method in the interface with an empty method body.
|
public MouseAdapter()
public void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerevent - the event, ignored in this implementationpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerevent - the event, ignored in this implementationpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerevent - the event, ignored in this implementationpublic void mouseEntered(MouseEvent event)
mouseEntered in interface MouseListenerevent - the event, ignored in this implementationpublic void mouseExited(MouseEvent event)
mouseExited in interface MouseListenerevent - the event, ignored in this implementation