How to remember the user decision from the last implementation of a program
<p>I have to creata a Dialog in Java with few fields like customer Id, name etc. The behaviour of the dialog is that customer(s) can be selected by a check box and can be saved and closed. When the next time the user opens the dialog all the customers that have been previously selected should be seen selected and when the user selects a few new customers and presses the save button then only the new user are displayed.</p>

<p>So, my question is what are the ways in Java by which my application sees and remember what happened during the last run of the program and uses those old values during the recent run of it. </p>

<p>Two immediate questions which come into my mind now is that in what format shall i save the current customer values when the dialog is saved. </p>

<p>and</p>

<p>Which API/classes do i have to retreive those particular values from whatever file/ format they are saved in</p>
