JavaFx: custom event either doesn't get fired or not listened to
Minimal code example: public class HelloApplication extends Application implements EventHandler<HelloApplication.MyEvent> { public class MyEvent extends Event { public static final EventType TYPE = new EventType<>(Event.ANY, "MyType"); public MyEvent() { super(TYPE); } } @Override public void handle(MyEvent myEvent) { System.out.println("Event handled!"); } @Override public void start(Stage stage) throws IOException { BorderPane root = new BorderPane(); stage.setScene(new… Read More JavaFx: custom event either doesn't get fired or not listened to