E - 这个模型的元素的类型 
       public interface MutableComboBoxModel<E> extends ComboBoxModel<E>
ComboBoxModel的可变版本。 
      | Modifier and Type | Method and Description | 
|---|---|
| void | addElement(E item)
              在模型的末尾添加一个项目。 
             | 
| void | insertElementAt(E item, int index)
              在特定索引中添加项目。 
             | 
| void | removeElement(Object obj)
              从模型中删除一个项目。 
             | 
| void | removeElementAt(int index)
              删除特定索引处的项目。 
             | 
getSelectedItem, setSelectedItemaddListDataListener, getElementAt, getSize, removeListDataListenervoid addElement(E item)
ListDataListener该项目已被添加。 
          item - 要添加的项目 
           void removeElement(Object obj)
ListDataListener该项目已被删除。 
          obj - 要删除的 
            Object 
           void insertElementAt(E item, int index)
ListDataListener该项目已被添加。 
          item - 要添加的项目 
           index - 添加对象的位置 
           void removeElementAt(int index)
ListDataListener s该项目已被删除。 
          index - 要删除的项目的位置 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.