0
I already know how to do that when it comes to a AnchorPane
, is something like this:
AnchorPane ap = new AnchoPane();
Label lbl = new Label("Qualquer");
ap.getChildren().add(lbl);
But when it comes to one Pane
normal, I can only call the getChildrenUnmodifiable()
, and if later I call the add(lbl)
the following exception shall be made:
Exception in thread "Javafx Application Thread" java.lang.Runtimeexception: java.lang.reflect.Invocationtargetexception
Can someone help me?
Provide a code that is reproducible. [mcve]
– Renan Gomes