Java javax.swing DefaultComboBoxModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing DefaultComboBoxModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing DefaultComboBoxModel.

The text is from its open source code.

Subclass

javax.swing.DefaultComboBoxModel has subclasses.
Click this link to see all its subclasses.

Constructor

DefaultComboBoxModel(final E[] items)
Constructs a DefaultComboBoxModel object initialized with an array of objects.
DefaultComboBoxModel(Vector v)
Constructs a DefaultComboBoxModel object initialized with a vector.
DefaultComboBoxModel()
Constructs an empty DefaultComboBoxModel object.

Method

voidaddElement(E anObject)
voidaddListDataListener(ListDataListener l)
Adds a listener to the list that's notified each time a change to the data model occurs.
EgetElementAt(int index)
intgetIndexOf(Object anObject)
Returns the index-position of the specified object in the list.
ObjectgetSelectedItem()
intgetSize()
voidinsertElementAt(E anObject, int index)
voidremoveAllElements()
Empties the list.
voidremoveElement(Object anObject)
voidremoveElementAt(int index)
voidsetSelectedItem(Object anObject)
Set the value of the selected item.