| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the
Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
MutableComboBoxModel<E>
A mutable version of
ComboBoxModel. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
DefaultComboBoxModel<E>
The default model for combo boxes.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected ComboBoxModel<E> |
JComboBox.dataModel
This protected field is implementation specific.
|
| Modifier and Type | Method | Description |
|---|---|---|
ComboBoxModel<E> |
JComboBox.getModel()
Returns the data model currently used by the
JComboBox. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
JComboBox.KeySelectionManager.selectionForKey(char aKey,
ComboBoxModel aModel)
Given
aKey and the model, returns the row
that should become selected. |
|
void |
JComboBox.setModel(ComboBoxModel<E> aModel)
Sets the data model that the
JComboBox uses to obtain
the list of items. |
| Constructor | Description |
|---|---|
JComboBox(ComboBoxModel<E> aModel)
Creates a
JComboBox that takes its items from an
existing ComboBoxModel. |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
BasicComboPopup.installComboBoxModelListeners(ComboBoxModel model)
Installs the listeners on the combo box model.
|
|
protected void |
BasicComboPopup.uninstallComboBoxModelListeners(ComboBoxModel model)
Removes the listeners from the combo box model
|
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
MetalFileChooserUI.DirectoryComboBoxModel
Data model for a type-face selection combo-box.
|
|
protected class |
MetalFileChooserUI.FilterComboBoxModel
Data model for a type-face selection combo-box.
|
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.