-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.1, 1.3.0
-
generic, x86, sparc
-
solaris_2.5.1, solaris_10, windows_95, windows_nt
OS: WinNT and Solaris
ItemEvent is not triggered for List, Choice, CheckBox and CheckboxMenuItem when items are selected programmatically.
When items are selected programmatically using the respective methods like
list.select(index) , ItemEvent is not triggered.
In this sample program, clicking the respective buttons changes the selection
of items in that component programmatically. Triggering of events can be
verified at the command prompt. Repeated clicking of the buttons will select
How to reproduce the Bug? -------->
Run this sample code. You would see a frame with a list,choice, checkbox,
few buttons and a menu with checkbox menuitem.
Click the buttons one after other and check at the command prompt, whether
any ItemEvent is triggered or not. If not, bug is reproduced.
NOTE: Clicking the buttons repeatedly selects a new item everytime to ensure
that the item event is triggered everytime the button is clicked.
ItemEvent is not triggered for List, Choice, CheckBox and CheckboxMenuItem when items are selected programmatically.
When items are selected programmatically using the respective methods like
list.select(index) , ItemEvent is not triggered.
In this sample program, clicking the respective buttons changes the selection
of items in that component programmatically. Triggering of events can be
verified at the command prompt. Repeated clicking of the buttons will select
How to reproduce the Bug? -------->
Run this sample code. You would see a frame with a list,choice, checkbox,
few buttons and a menu with checkbox menuitem.
Click the buttons one after other and check at the command prompt, whether
any ItemEvent is triggered or not. If not, bug is reproduced.
NOTE: Clicking the buttons repeatedly selects a new item everytime to ensure
that the item event is triggered everytime the button is clicked.
- duplicates
-
JDK-4032466 item events not generated when state programmaticaly set on Checkbox/List
-
- Closed
-
- relates to
-
JDK-4324396 AWT Checkbox and CheckboxMenuItem's setState() will not trigger an ItemEvent
-
- Resolved
-
-
JDK-4096518 JCheckBox.setSelected() generates ItemEvents
-
- Closed
-
-
JDK-4117048 CheckBoxMenuItem: ItemStateChanged event not generated by call to setState()
-
- Closed
-
-
JDK-4324406 AWT List and Choice's select() will not trigger an ItemEvent
-
- Resolved
-
-
JDK-4681104 Programmatic state changes do not trigger events in AWT
-
- Closed
-
(1 relates to)