if (e.getKeyChar() != KeyEvent.CHAR_UNDEFINED &&
keyCode != KeyEvent.VK_ENTER &&
keyCode != KeyEvent.VK_ESCAPE) {
// If the user types a key, restart the timer to update the list.
classComboTimer.restart();
} else if (keyCode == KeyEvent.VK_ENTER && classNameCombo.getSelectedIndex() == -1) {
// If the user hits enter but no item is selected in the combo, then
// select the first item for the user.