Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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.
|