awt.List ItemEvent source...
Posted on 2003-02-28
This is for the awt.List:
I want to do things accodring to which item(s) is selected in a List. So I want to mark the selected items in a simple way, and then use that info when a button is pressed for example.
The ItemListener though that I put, receives ItemEvent-s coming from the List itself, not the items in the list. The only way I can see the actual items of the list, is the ItemEvent.paramString(), which is far from useful.
Is there a reasonable way to do it?? (To get the index number of the list item selected/pressed)