This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I've got a jTable which shows data from my sqlite database. There are 12 checkboxes above the jtable, which each represent a different set of data.
currently, if you select a checkbox and press load, the right set of data is loaded. if you press save the data is stored again in the database.
Now, would it be possible...to do the saving and loading without pressing the save and load buttons? If you just click on a checkbox the right set of data is loaded....and somehow saved if you change it.
my ideas so far:
- use an entry row. so all the data is stored if you enter an additional row, then the loading can be done with checking the checkboxes. However not really aesthetically pleasing.
- if a checkbox is selected, save the current data first, then load the new data. But there are loopholes here, when data does not get saved.