Event for when a node gets shown on screen

Pedro Duque Vieira pedro.duquevieira at gmail.com
Tue Oct 1 12:37:51 PDT 2013


Hi Anton,

If I understand correctly (never used the Bindings.select method) you're
listening to the node scene property and at the same time if the window
that owns the scene is showing, that is, if the stage is visible on screen?

Thanks, best regards,

Hi Pedro,
>      you may try the following code:
> Bindings.select(node.sceneProperty(), "window",
> "showing").addListener(new ChangeListener<Boolean>() ....);
> BTW, this way you could add the listener even when the node is not yet
> attached to any scene or window.
> Regards,
> Anton.


-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list