protected void showPopup(Iterator<String> iter){
  getPopupComponent();
  boolean different=false;
  Vector<String> v=new Vector<String>();
  ListModel<String> model=entryList.getModel();
  for (int i=0; iter.hasNext(); i++) {
    String next=iter.next();
    v.add(next);
    if (!different && i < model.getSize())     different|=!next.equals(model.getElementAt(i));
  }
  different|=model.getSize() != v.size();
  if (different) {
    entryList.setListData(v);
    entryList.clearSelection();
  }
  entryList.setCurrentText(getText());
  showPopup();
}

protected void showPopup ( Iterator < String > iter ) { getPopupComponent ( ) ; boolean different = false ; Vector < String > v = new Vector < String > ( ) ; ListModel < String > model = entryList . getModel ( ) ; for ( int i = 0 ; iter . hasNext ( ) ; i ++ ) { String next = iter . next ( ) ; v . add ( next ) ; if ( ! different && i < model . getSize ( ) ) different |= ! next . equals ( model . getElementAt ( i ) ) ; } different |= model . getSize ( ) != v . size ( ) ; if ( different ) { entryList . setListData ( v ) ; entryList . clearSelection ( ) ; } entryList . setCurrentText ( getText ( ) ) ; showPopup ( ) ; }
fills the popup with text & shows it .
