Posted By:
Bahman_Barzideh
Posted On:
Sunday, May 25, 2003 08:40 AM
Change your print statement to include the value of the
getStateChange () on the ItemEvent you
get in your itemStateChanged () method. You will
see that the value on one of the two calls is ItemEvent.SELECTED and on the other it is ItemEvent.DESELECTED. This is because one entry is
being deselected while another is being selected. You can
use this criteria to ignore one or another of the two
sets.