The basic pattern is
if (getSkinnable().getOnMouseXXX() == null) getSkinnable().setOnMouseXXX(handler);
It would be better to addEventHandler(handler)
if (getSkinnable().getOnMouseXXX() == null) getSkinnable().setOnMouseXXX(handler);
It would be better to addEventHandler(handler)
- relates to
-
JDK-8268877 TextInputControlSkin: incorrect inputMethod event handler after switching skin
- Resolved