Combo Box Styles
VAqua supports several styles for editable combo boxes.
(See Pop Up Buttons for non-editable combo box styles.)
Custom styles are selected using the JComboBox.style
client property on the
combo box. Combo boxes support several size options, specified using the
JComponent.sizeVariant
client property with values
regular
(the default), small
, or mini
.
The default style is the standard native combo box style, unless the JComboBox is being used as a cell editor, in which case a borderless style is used, or the JComboBox is in a JToolBar, in which case a textured style is used. In addition, VAqua supports these styles of combo boxes:
Borderless
This style is used by default for a cell editor.
This style is selected by setting the JComboBox.style
client property to borderless
.
Textured
This style is similar to a textured button.
It is recommended for use in the window frame.
This style is selected by setting the JComboBox.style
client property to textured
.