|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
public class JComboBox
A component that combines a button or editable field and a drop-down list. The user can select a value from the drop-down list, which appears at the user's request. If you make the combo box editable, then the combo box includes an editable field into which the user can type a value.
Warning: Swing is not thread safe. For more information see Swing's Threading Policy.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see XMLEncoder.
See How to Use Combo Boxes in The Java Tutorial for further information.
ComboBoxModel,
DefaultComboBoxModel| Nested Class Summary | |
|---|---|
protected class |
JComboBox.AccessibleJComboBox
This class implements accessibility support for the JComboBox class. |
static interface |
JComboBox.KeySelectionManager
The interface that defines a KeySelectionManager. |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected String |
actionCommand
This protected field is implementation specific. |
protected ComboBoxModel |
dataModel
This protected field is implementation specific. |
protected ComboBoxEditor |
editor
This protected field is implementation specific. |
protected boolean |
isEditable
This protected field is implementation specific. |
protected JComboBox.KeySelectionManager |
keySelectionManager
This protected field is implementation specific. |
protected boolean |
lightWeightPopupEnabled
This protected field is implementation specific. |
protected int |
maximumRowCount
This protected field is implementation specific. |
protected ListCellRenderer |
renderer
This protected field is implementation specific. |
protected Object |
selectedItemReminder
This protected field is implementation specific. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, |