How can I read and save the JavaFX GUI element hierarchy of my program inside a tree (including the main window, Stage, Button, TextBox, etc.)?
Stage
Button
TextBox
There's no automatism for what you want to achieve. The closest thing to loading is to use an fxml. But the problem is the saving. You can't generate an fxml from your scene nodes. Moreover the fxml is dynamic, it doesn't even have a schema.
For the saving you could
and for the loading part you can use the standard fxml loader.
1.4m articles
1.4m replys
5 comments
57.0k users