Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 14, 2016 20:53
Show Gist options
  • Save codenameone/7e4dc757971e460e5823 to your computer and use it in GitHub Desktop.
Save codenameone/7e4dc757971e460e5823 to your computer and use it in GitHub Desktop.
Simple sample of the AutoCompleteTextField in Codename One
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);
@codenameone
Copy link
Author

Sample usage of AutoCompleteTextField.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment