/** * Creates a new combo box auto completion browser. Note that this * constructor does <em>not</em> call {@link #update} and hence the drop * down list of the combo box is left unchanged. * * @param comboBox The combo box to enable browsing for auto completions. * May be {@code null}. */ protected AbstractComboBoxBrowser(final @CheckForNull JComboBox<E> comboBox) { changeComboBox(null, comboBox, false); }
/** * Sets the combo box which this object is auto completing and updates the * drop down list with the auto completion for the currently selected item. * * @param comboBox The combo box to enable browsing for auto completions. * May be {@code null}. */ public void setComboBox(final @CheckForNull JComboBox<E> comboBox) { changeComboBox(getComboBox(), comboBox, true); }