Open GoogleCodeExporter opened 8 years ago
Oops, left some external references in there. Try the following onModuleLoad
instead:
public void onModuleLoad() {
final Object[][] twoDimData = new Object[][] {new Object[] {"foo"}, new
Object[] {"Bar"}};
final FieldDef[] fields = new FieldDef[]{new StringFieldDef("label")};
final SimpleStore store = new SimpleStore(-1, fields, twoDimData);
store.load();
final ComboBox combo = new ComboBox();
combo.setDisplayField("label");
combo.setTypeAhead(true);
combo.setStore(store);
final Panel panel = new Panel();
panel.add(combo);
new Viewport(panel);
}
Original comment by mhutchin...@gmail.com
on 29 Apr 2008 at 12:49
Original issue reported on code.google.com by
mhutchin...@gmail.com
on 29 Apr 2008 at 12:47