public static interface Component.MouseEventListener
This callback will be invoked before the component receives the event.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
onMouseEvent(Component component,
MouseEvent event) |
Processes a mouse event dispatched to a component.
|
boolean onMouseEvent(Component component, MouseEvent event)
The listener responds to a mouse event before the component receives the event.
component - Indicates the component to which the mouse event is dispatched.event - Indicates all information about the mouse event.true if the listener has processed the event; returns false otherwise.