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.

  • Save to file. When opening read from file. - Enikeyschik

1 answer 1

  1. Try saving the fxmloader.load and fxmlloader.getController () results and substituting the existing results when calling another scene
  2. When calling a scene, get the controller from the fxmlolader and transfer the necessary values
  3. 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.