java.awt.event
public interface MouseListener extends EventListener
MouseAdapter
,
MouseEvent
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(MouseEvent event)
This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
|
void |
mouseEntered(MouseEvent event)
This method is called when the mouse enters a component.
|
void |
mouseExited(MouseEvent event)
This method is called when the mouse exits a component.
|
void |
mousePressed(MouseEvent event)
This method is called when the mouse is pressed over a component.
|
void |
mouseReleased(MouseEvent event)
This method is called when the mouse is released over a component.
|
void mouseClicked(MouseEvent event)
event
- the MouseEvent
indicating the clickvoid mousePressed(MouseEvent event)
event
- the MouseEvent
for the pressvoid mouseReleased(MouseEvent event)
event
- the MouseEvent
for the releasevoid mouseEntered(MouseEvent event)
event
- the MouseEvent
for the entryvoid mouseExited(MouseEvent event)
event
- the MouseEvent
for the exit