On Mon, 18 May 2026 20:39:39 GMT, Andy Goryachev <[email protected]> wrote:
>> EventUtil is in the javafx.base module and doesn't have access to Node. >> >> Dispatching an event returns an event (possibly null) and all other routines >> in EventUtil return that event. It strikes me as artificial to only check >> whether the event was consumed or not. > > This is a utility method to dispatch an `Event` to a `Node`, right? So > returning a boolean which is then passed on makes sense. The > `Node.getEventDispatcher()` is a public API. > > Perhaps I don't quite understand your objection? EventUtil is in the javafx.base module and can't import anything from javafx.graphics, including Node. I've moved the utility routine to the skin Utils class. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2166#discussion_r3267409777
