Say, an application properties page with lots of JCheckboxes, JTextfields, JLists and other JComponents.
Now, what I need to do is track the changes user makes and save them.
What would be the correct way of implementing this?
Say, an application properties page with lots of JCheckboxes, JTextfields, JLists and other JComponents.
Share
You don’t need to track changes in real times (unless special needs).
You can react on the OK button, iterating on the components, getting their value, perhaps comparing with the old one or just saving all the values blindly.
And of course abandon everything if the user cancels.