0
Error in creating button on javafx
https://code.sololearn.com/cL7aRikZ4lt5/?ref=app I have error in root.getChildren().add(btn) error appears when I write .add (btn)
3 odpowiedzi
+ 10
First call add for all nodes, after that call show. Not the other way round like you did.
+ 8
Sorry, I'm on mobile and can't test your code.
Please add the stack trace error output.
I think, you have to call show at the end after you added all nodes, not at the beginning. But the error message might give a hint ;)
0
yes I know that I need show and scene I did it but error only in .add ()