Controls consume mouse events, so they don't bubble up to their parents. But normally one can register a handler on a control and it gets called (before the event is consumed).
TextArea, however, has ScrollPane as a child. ScrollPane is a control, hence it consumes the mouse events and doesn't let them bubble to the TextArea. As a result of that, no mouse event handlers registered on TextArea are ever called.
TextArea, however, has ScrollPane as a child. ScrollPane is a control, hence it consumes the mouse events and doesn't let them bubble to the TextArea. As a result of that, no mouse event handlers registered on TextArea are ever called.
- is blocked by
-
JDK-8119464 ScrollPane steals MouseClicked from parent
-
- Resolved
-