The method "public void setState(boolean state)" of Checkbox and CheckboxMenuItem
should specifically state that this method should be primarily used to intialize
the state of the checkbox. Furthermore, by programmatically setting the state
of the checkbox, it will not trigger an ItemEvent. There should be an emphasis
on the only way to trigger an ItemEvent is by user interaction. Many users were
under the impression that by setting the state of the checkbox it'll trigger
and ItemEvent.
Please also see these bug #4318851, #4032466, #4034837, and #4067113
should specifically state that this method should be primarily used to intialize
the state of the checkbox. Furthermore, by programmatically setting the state
of the checkbox, it will not trigger an ItemEvent. There should be an emphasis
on the only way to trigger an ItemEvent is by user interaction. Many users were
under the impression that by setting the state of the checkbox it'll trigger
and ItemEvent.
Please also see these bug #4318851, #4032466, #4034837, and #4067113
- relates to
-
JDK-4324406 AWT List and Choice's select() will not trigger an ItemEvent
- Resolved
-
JDK-4318851 ItemEvent not triggered List,Choice,CheckBox,CheckboxMenuItem
- Closed