I have a main scene in which there is a button for opening another scene, for counting data and comments. Question: As when closing another scene and opening it later, save in it the data that was previously entered, that is, so that they would not be deleted.
1 answer
- Try saving the fxmloader.load and fxmlloader.getController () results and substituting the existing results when calling another scene
- When calling a scene, get the controller from the fxmlolader and transfer the necessary values
- When you call a scene, get it from the fxmlolader and kick it, that it took away the saved values of their storage meta.
Write, if for some of the options you need to answer in more detail.
|