| public class javax.swing DefaultComboBoxModel
|
Java SE 6 |
| version | 1.20 11/17/05 |
| Constructors | |||
|---|---|---|---|
| public | DefaultComboBoxModel() Constructs an empty DefaultComboBoxModel object. | ||
| public | DefaultComboBoxModel(Object[] items) Details
Constructs a DefaultComboBoxModel object initialized with
an array of objects.
| ||
| public | DefaultComboBoxModel(Vector v) Details
Constructs a DefaultComboBoxModel object initialized with
a vector.
| ||
| Methods | |
|---|---|
| public void | addElement(Object anObject) |
| public void | insertElementAt(Object anObject, int index) |
| public void | removeAllElements() Empties the list. |
| public void | removeElement(Object anObject) |
| public void | removeElementAt(int index) |
| Properties | |||||
|---|---|---|---|---|---|
| public Object | getElementAt(int index) | ||||
| public int | getIndexOf(Object anObject) Details
Returns the index-position of the specified object in the list.
| ||||
| public void | setSelectedItem(Object anObject) Details
Set the value of the selected item. The selected item may be null.
| ||||
| public Object | getSelectedItem() | ||||
| public int | getSize() | ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|