ui/src/main/java/ucar/util/prefs/ui/PrefPanel.java
public Field.TextCombo addTextComboField(String fldName, String label, java.util.Collection defValues, int nKeep, boolean editable) {
    Field.TextCombo fld = new Field.TextCombo(fldName, label, defValues, nKeep, storeData);
    addField( fld);
    fld.setEditable( editable);
    return fld;
  }
public Field.TextCombo addTextComboField(String fldName, String label, java.util.Collection defValues, int nKeep, boolean editable) {
    Field.TextCombo fld = new Field.TextCombo(fldName, label, defValues, nKeep, storeData);
    addField( fld);
    fld.setEditable( editable);
    return fld;
  }
public Field . TextCombo addTextComboField ( String fldName , String label , java . util . Collection defValues , int nKeep , boolean editable ) { Field . TextCombo fld = new Field . TextCombo ( fldName , label , defValues , nKeep , storeData ) ; addField ( fld ) ; fld . setEditable ( editable ) ; return fld ; }
Add a text combobox field.
@param fldName the name to store the data in the PersistenceManagerData
@param label used as the label on the panel
@param defValues list of default values (Strings) to include in the comboBox. May be null.
These are added to the combobox (at the end) no matter how many there are.
@param nKeep number of most recently used values to keep
@param editable whether the user can add new entries the list to select from.
Add a text combobox field .