|
|||||||||
| Home >> All >> java >> awt >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt.event
Interface MouseListener

- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
- MouseAdapter
- public interface MouseListener
- extends java.util.EventListener
This interface is for classes that wish to receive mouse events other than simple motion events. This includes clicks (but not mouse wheel events), and crossing component boundaries without change in button status. To track moves and drags, use MouseMotionListener, and to track wheel events, use MouseWheelListener. To watch a subset of these events, use a MouseAdapter.
- Since:
- 1.1
| Method Summary | |
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. |
| Method Detail |
mouseClicked
public void mouseClicked(MouseEvent event)
- This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
mousePressed
public void mousePressed(MouseEvent event)
- This method is called when the mouse is pressed over a component.
mouseReleased
public void mouseReleased(MouseEvent event)
- This method is called when the mouse is released over a component.
mouseEntered
public void mouseEntered(MouseEvent event)
- This method is called when the mouse enters a component.
mouseExited
public void mouseExited(MouseEvent event)
- This method is called when the mouse exits a component.
|
|||||||||
| Home >> All >> java >> awt >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC