Reputation: 177
Is there an alternative to autocomplete TextField in codenameOne ? because it doesn't work for me.
i just create it one and add completion strings via GUI. and it doesn't show nothing when trying to type characters into it. this sounds very basic to me.
Upvotes: 1
Views: 56
Reputation: 554
There are examples of coding on this page.
Form hi = new Form("Auto Complete", new BoxLayout(BoxLayout.Y_AXIS));
AutoCompleteTextField ac = new AutoCompleteTextField("Short", "Shock", "Sholder", "Shrek");
ac.setMinimumElementsShownInPopup(5);
hi.add(ac);
Upvotes: 2