Skip to content

Instantly share code, notes, and snippets.

@andreis
Created July 31, 2013 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreis/6127203 to your computer and use it in GitHub Desktop.
Save andreis/6127203 to your computer and use it in GitHub Desktop.
Project currentProject = ProjectManager.getInstance().getOpenProjects()[0];
ArrayList<String> strings = new ArrayList<String>();
strings.add("abc");
strings.add("abcd");
strings.add("abd");
String initialText = "a";
Icon anIcon = new ImageIcon("res/images/forge_icon_13px.png");
TextFieldWithAutoCompletion<String> textFieldWithAutoCompletion =
TextFieldWithAutoCompletion.create(currentProject, strings, anIcon, true, initialText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment