I am disabling a JCheckbox
and then enabling it with the help of setEnabled(...)
method.
But the problem is if I disable a unselected checkbox, then it becomes selected after I enable it.
I want all of them to have the same state after being enabled that they had before being disabled.