I would like to extend either PopUpList or PopUpMenu, to make it so each item in the list is indexed by a letter or number. Pressing the appropriate key selects the item. For example:
The user would be able to press the "3" key to jump to "Option 3". My first attempt was to extend PopUpList, overriding the handleInput method, to implement this functionality. Unfortunately I quickly learned that while PopUpList has a getSelectedIndex() method, there is no "set" counterpart. I need a way to select a particular item programmatically. Does anyone have any ideas on the best way to accomplish my goal?