Let's the user make a selection from a list of predefined items. Visually, this is implemented as a button-like component with a pull-down menu.
Let's the user make a selection from a list of predefined items. Visually, this is implemented as a button-like component with a pull-down menu.
- See also
javax.swing.JComboBox
- Companion
- object
Type members
Value members
Abstract methods
Concrete methods
Makes this combo box editable. In order to do so, this combo needs an editor which is supplied by the implicit argument. For default editors, see ComboBox companion object.
Makes this combo box editable. In order to do so, this combo needs an editor which is supplied by the implicit argument. For default editors, see ComboBox companion object.
Maximum number of rows to display without scrolling
Maximum number of rows to display without scrolling
Maximum number of rows to display without scrolling
Maximum number of rows to display without scrolling
Sets the renderer for this combo box's items. Index -1 is passed to the renderer for the selected item (not in the pull-down menu).
Sets the renderer for this combo box's items. Index -1 is passed to the renderer for the selected item (not in the pull-down menu).
The underlying combo box renders all items in a ListView
(both, in the pull-down menu as well as in the box itself), hence the
ListView.Renderer
.
Note that the UI peer of a combo box usually changes the colors of the component to its own defaults after the renderer has been configured. That's Swing's principle of most suprise.
Inherited methods
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Inherited from
- Reactor
Listen to the given publisher as long as deafTo
isn't called for
them.
Listen to the given publisher as long as deafTo
isn't called for
them.
- Inherited from
- Reactor
Listen to the given publisher as long as deafTo
isn't called for
them.
Listen to the given publisher as long as deafTo
isn't called for
them.
- Inherited from
- Reactor
Listen to the given publisher as long as deafTo
isn't called for
them.
Listen to the given publisher as long as deafTo
isn't called for
them.
- Inherited from
- Reactor
Listen to the given publisher as long as deafTo
isn't called for
them.
Listen to the given publisher as long as deafTo
isn't called for
them.
- Inherited from
- Reactor
Notify all registered reactions.
Notify all registered reactions.
- Inherited from
- Publisher
Notify all registered reactions.
Notify all registered reactions.
- Inherited from
- Publisher
Notify all registered reactions.
Notify all registered reactions.
- Inherited from
- Publisher
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
- Inherited from
- Component
Concrete fields
Inherited fields
All reactions of this reactor.
All reactions of this reactor.
- Inherited from
- Reactor
All reactions of this reactor.
All reactions of this reactor.
- Inherited from
- Reactor
All reactions of this reactor.
All reactions of this reactor.
- Inherited from
- Reactor