The Project        Download   Javadoc   SourceForge   Donate

DynamicList

Adds to a JTextField or ButtonTextField a preloaded items. Shows a dropdown list of items filtered by the typed text.

JTextField example

  JTextField field = new JTextField(10);

  List<String> list = Country.getCountries();  
  new DynamicList<String>(field, list);

ButtonTextField example

  URL uFind = cls.getResource("/resources/images/find.png");
  ButtonTextField field = new ButtonTextField(10);
  field.addButton("Find", uFind, listener);
  field.setDropDownVisible(false);

  List<String> list = Country.getCountries();
  new DynamicList<String>(field, list);