java - Save and load state of GUI component -


i new gui development, may easy do, however, appreciated.

considering have gui 7-8 tabs, , each tab contains text boxes, check boxes , radio buttons, list-boxes , on.

the idea after filling tabs, user can save data (state of components) in file.

and later on loading corresponding file, user can retrieve data.

how can able without manually save data?

update:

please consider, have following gui application collect student information: sample application tab # 1

as there several tabs, user may stop anytime ans save information in file, such as: saving information

the idea user can load file later , continue his/her task.

i know how can save state of components in application , load later on.

thanks.

you mixing 2 things here: ui , data.

the data save file should represent "mental model" build whole application around.

example: seem think of "person" collection of text fields , checkboxes ... , wrong: person distinct class, set of fields respectively methods represent behavior.

and person object can somehow displayed within ui. persist person objects, not text fields , checkboxes!

in other words: should first understand object model application dealing with. learn different ways persist data. , based on that, providing graphical user experience. , when there, first stop should models - swing concept "map" data ui elements.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -