MouseListener interface.
Classes that wish to deal with MouseEvents
which occur as mouse buttons are pressed and released can
extend this class and override only the methods which they are
interested in.
MouseListener, MouseEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mouseDoubleClick(MouseEvent
an event containing information about the mouse double click e)Implements org. |
| public void | mouseDown(MouseEvent
an event containing information about the mouse button press e)Implements org. |
| public void | mouseUp(MouseEvent
an event containing information about the mouse button release e)Implements org. |
| MouseAdapter | back to summary |
|---|---|
| public MouseAdapter() | |
| mouseDoubleClick | back to summary |
|---|---|
| public void mouseDoubleClick(MouseEvent e) Implements org. Sent when a mouse button is pressed twice within the (operating system specified) double click period. The default behavior is to do nothing.
| |
| mouseDown | back to summary |
|---|---|
| public void mouseDown(MouseEvent e) Implements org. Sent when a mouse button is pressed. The default behavior is to do nothing.
| |
| mouseUp | back to summary |
|---|---|
| public void mouseUp(MouseEvent e) Implements org. Sent when a mouse button is released. The default behavior is to do nothing.
| |