onHover
fun SwingModifier.onHover(onEnter: () -> Unit = UNDECLARED_ACTION, onExit: () -> Unit = UNDECLARED_ACTION): SwingModifier
Installs mouse enter/exit handlers.
A callback left undeclared reports nowhere, and declaring neither is refused.
Return
this chain with the hover handlers declared on it.
Parameters
onEnter
runs when the pointer arrives over the component, a return from a child of its own that listens for mouse events included.
onExit
runs when the pointer leaves it, a move onto such a child included; a child listening for no mouse event of its own never takes the pointer, so passing over it reports neither.