hastebrot
02/02/2017, 8:27 AMroot.scene
(or primaryStage.scene
) in FooView.<init>()
I need to delay the event registration to the next available JavaFX thread pulse. Otherwise it will throw a NPE. That's similar to the good old setTimeout(..., 0)
trick in JavaScript/DOM.