|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MouseListener
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.
MouseAdapter,
MouseEvent| 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 |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||