If I want to access `root.scene` (or `primaryStage...
# tornadofx
h
If I want to access
root.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.