hide list on no matches

This commit is contained in:
Manindra Moharana
2013-07-06 01:15:19 +05:30
parent 2664668d24
commit cf36b39de4

View File

@@ -664,6 +664,8 @@ public class TextArea extends JEditTextArea {
protected void showSuggestion(DefaultListModel defListModel,String subWord) {
if (defListModel.size() == 0) {
System.out.println("No suggestions to show.");
hideSuggestion();
return;
}
int position = getCaretPosition();