On Tue, 4 Aug 2026 17:58:35 GMT, Andy Goryachev <[email protected]> wrote:
> the "subtype" thing is present in the original doc and is quite confusing: > aren't those distinct types? All the events are distinct from a proper Java language perspective (no `extends`), but they hold information about their "event supertype": EventType<MouseEvent> MOUSE_ENTERED_TARGET = new EventType<>(MouseEvent.ANY, "MOUSE_ENTERED_TARGET"); EventType<MouseEvent> MOUSE_ENTERED = new EventType<>(MouseEvent.MOUSE_ENTERED_TARGET, "MOUSE_ENTERED"); The first argument is `superType`, so `MOUSE_ENTERED` is a subtype of `MOUSE_ENTERED_TARGET` in the event system. Don't get me started on what I think about this design :) ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2238#discussion_r3720698574
