};  add(searchTextField); add(new Label("lblSearchFor", getString("lblSearchFor"))); add(new Button("btSubmit", new Model(getString("btSubmit")))); }
List<String[]> matches = _dic.getMatchingLemma(input);   int i=0; Iterator<String[]> it = matches.iterator(); while(it.hasNext() && i < 25) { choices.add(it.next()[0]); i++; }  return choices.iterator(); } };  _btSearch = new Button("btSubmit", new Model(getString("btSubmit")));    _tabPanel = getAvailableTabs(); add(_tabPanel);  add(_dropDic); add(_txtSearch); add(new Label("lblSearchFor", getString("lblSearchFor"))); add(_btSearch);  }
      public MessageForm(String id)      {        super(id);                searchTextField = new AutoCompleteTextField("txtSearch", new Model()) {          protected Iterator getChoices(String input) {            List<String> choices = new ArrayList<String>();                        if(input.length() < 3)            {              return choices.iterator();            }                        List<String[]> matches = _dic.getMatchingLemma(input);                        //choices = matches;            int i=0;            Iterator<String[]> it = matches.iterator();            while(it.hasNext() && i < 25)            {              choices.add(it.next()[0]);              i++;            }                        return choices.iterator();          }        };                add(searchTextField);             add(new Label("lblSearchFor", getString("lblSearchFor")));        add(new Button("btSubmit", new Model(getString("btSubmit"))));      }