JComboBox

Client properties:

Property

Type Notes

JComponent

.sizeVariant

java.lang.String Values: "regular", "small"
JComboBox
.isTableCellEditor
Boolean This is set to true by class DefaultTableCellEditor. This produces a 'flat' appearance of the combo box.
Quaqua.Component
.visualMargin
java.awt.Insets

See layout

UIManager properties:

Property

Type Notes
ComboBox
.harmonizePreferredHeight
Boolean Set this to true, to get the same preferred height for editable and non-editable combo boxes. This may result in better layouts with some layout managers.
The default value is false.
ComboBox
.maximumRowCount
Integer This is initialized to 100 by Quaqua. Set this to a smaller value, if this breaks your application.

Client property: JComponent.sizeVariant

Quaqua supports the regular and small size variant.

Quaqua Look and Feel - JComboBox styles
You can change the size of a combo box by setting the client property JComponent.sizeVariant, or by setting an appropriate font. Combo boxes are displayed with regular size for the font Lucida Grande 13 and with small size for the font Lucida Grande 11.

 

myComboBox.setFont(

   "Lucida Grande", Font.PLAIN, 11

);