public static interface Component.MousePointerStyleListener
In the scenario where an external mouse or touchpad is connected, implement methods to change the mouse pointer style and register a listener to observe the changes triggered when the mouse pointer is placed over a component.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
MousePointerStyle |
onUpdatePointerStyle(Component component,
MouseEvent event) |
Called when the mouse pointer style changes.
|
MousePointerStyle onUpdatePointerStyle(Component component, MouseEvent event)
After the listener for mouse pointer style changes is registered, the listener is called when the mouse pointer is placed over the component. You can override the method to return the mouse pointer style displayed over the component.
component - Indicates the component that currently processes the mouse pointer style.event - Indicates the mouse event received by the component.