do not open the popup if the user input doesn't match any of the items in the combo box

cusax-fix
Yana Stamcheva 20 years ago
parent 530eb7d9f5
commit f8a22d5305

@ -211,9 +211,12 @@ protected void handleChange()
}
((FilterableComboBoxModel) getModel()).setFilter(filter);
// A bit nasty but it seems to get the popup validated properly
setPopupVisible(false);
setPopupVisible(true);
if(getModel().getSize() > 0)
setPopupVisible(true);
filtering = false;
}
}

Loading…
Cancel
Save