private void search(final boolean selectResultsOnly) {
    final List<Integer> result = search(getText());

    if (result.size() == 0) {
      getEditor().getEditorComponent().setBackground(BACKGROUND_COLOR_FAIL);
    } else {
      for (final IViewSearchFieldListener listener : listeners) {
        listener.searched(result, selectResultsOnly);
      }

      getEditor().getEditorComponent().setBackground(BACKGROUND_COLOR_SUCCESS);
    }
  }
Editable combo box used for searching in UI tables.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/components/viewsearchfield/TableTextSearchComboBox.java