I have an javafx application which let's the user to add as much as buttons he/she wants.
I load my main scene root from an fxml file which contains the default user-interface.
As the user changes the interface, I change the scene using @FXML annotation.
This changes are temporary and the user interface will be same as what it was, in the next time application run. So here's my question:
How can I save the changes made to interface of the application during runtime to a new fxml file?
Application.stop()to execute code when the application shuts down); then in your controller'sinitialize()method read the last state and apply it to the application that is starting up.