How to find out if a JCheckBox had been unselected after being selected
My application has a number of checkboxes.
Of course, there are implications when checkboxes are ticked. Therefore, I need a way of finding out when a checkbox gets ticked and then unticked in order to undo the functionality that was triggered by ticking it.
I know that if a checkBox's .isSelected() method returns false, that means it is not selected. However, I need to know if it has been unselected after being selected.
Any help would be appreciated.
Re: How to find out if a JCheckBox had been unselected after being selected
There are event objects passed to listeners that should describe the event that happened to the checkbox. Have you tried looking at what is in them?