The methods "public void select(int pos)" and "public void select(String str)"
of Choice, and the method "public void select(int index)" of List
should specifically state that these methods should be primarily used to
intially selecting the item of the component. By programmatically calling
these methods 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 using these methods it'll trigger
and ItemEvent.
Please also see these bug #4324396, #4318851, #4032466, #4034837, and #4067113
of Choice, and the method "public void select(int index)" of List
should specifically state that these methods should be primarily used to
intially selecting the item of the component. By programmatically calling
these methods 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 using these methods it'll trigger
and ItemEvent.
Please also see these bug #4324396, #4318851, #4032466, #4034837, and #4067113
- relates to
-
JDK-4324396 AWT Checkbox and CheckboxMenuItem's setState() will not trigger an ItemEvent
-
- Resolved
-
-
JDK-4318851 ItemEvent not triggered List,Choice,CheckBox,CheckboxMenuItem
-
- Closed
-