Hallo I have a JComboBox and I listen it with a ItemListener implementation.What is wonder me is that the events are coming two times(every time for each state select or deselect).Why two times ?
SCJP, SCJD, SCWCD, OCPJBCD
posted 12 years ago
Originally posted by Mihai Radulescu: Why two times ?
You will receive one or two ItemEvents when the selection changes. The first event is "item deselected" (the old selection). If the original selection is empty, you won't receive this event. The second event is "item selected" (only if the new selection isn't empty). [ November 10, 2004: Message edited by: Geza ba ]