public void autoCompleteInput(){
  String input=getText();
  if (input != null && input.length() > 0) {
    Iterator<String> it=dict.iterator(input);
    if (it.hasNext())     showPopup(it);
 else     hidePopup();
  }
 else {
    hidePopup();
  }
}

public void autoCompleteInput ( ) { String input = getText ( ) ; if ( input != null && input . length ( ) > 0 ) { Iterator < String > it = dict . iterator ( input ) ; if ( it . hasNext ( ) ) showPopup ( it ) ; else hidePopup ( ) ; } else { hidePopup ( ) ; } }
displays the popup window with a list of auto - completable choices , if any exist .
