Makes this combo box editable.
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.
Sets the renderer for this combo box's items.
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 surprise.
A
ComboBox
for editable numbers. Numbers such asInt
orDouble
are presented inside aSpinner
editor component. The combo-box carries a list of preset numbers.