What is the difference between ChangeListener
and ItemListener
for JCheckBox
and JRadioButton
? Both of them work fine when they are selected/deselected.
I know that some components doesn't support ChangeListener
like the JComboBox
. Other than the reason that ChangeListener
or ItemListener
work for only some components. Is there any difference between them like when are they generated?
Any answer is appreciated. Thanks in advance.