20 package net.sf.gridarta.gui.dialog.gameobjectattributes;
22 import javax.swing.ComboBoxModel;
23 import javax.swing.JComboBox;
39 private final JComboBox<?>
box;
50 @SuppressWarnings(
"rawtypes")
52 for (
int i = 0; i < aModel.getSize(); i++) {
53 if (((String) aModel.getElementAt(i)).toLowerCase().charAt(1) == aKey) {
55 box.setSelectedIndex(i);
final JComboBox<?> box
JComboBox reference.
KeySelectionManager to manage the select-per-keystroke in a JComboBox (The default KeySelectionManage...
StringKeyManager(final JComboBox<?> box)
Creates a new instance.
int selectionForKey(final char aKey, final ComboBoxModel aModel)