mardi 22 août 2017

JavaFX: How to save application data in a xml file and restore back?

I've several check boxes, text fields and two buttons (Save & Open) like this:

enter image description here

Let say after checking the check boxes some or all and filling the text fields some or all when user will click on the save button, it will open a file chooser and save the selected and filled information into a xml file.

And when user click on the open button he can choose the previously saved xml file using the file chooser.

So what I want is when user choose the previously saved xml file I want to parse the stored data and according to that data I want to check only those check boxes and fill only those text fields which user checked and filled at the time of saving please help me how can I achieve this.




Aucun commentaire:

Enregistrer un commentaire