N
N
Neonoviiwolf2016-09-14 14:15:42
Java
Neonoviiwolf, 2016-09-14 14:15:42

How to know if an instance of a class has been brought to the stage?

Kind
How to check if an instance of a class, for example, Label, has been added to the display?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rzoner, 2016-09-28
@Neonoviiwolf

You can subscribe to the Node#sceneProperty property - the combination of values ​​newValue != null && oldValue == null will indicate that the entire graph of controls is displayed on the screen (BorderPane->FlowPane(center)->VBox(#3)->Label, Button just subscribe to BorderPane#sceneProperty)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question