JList

Client properties:

Property

Type Notes

JComponent

.sizeVariant

java.lang.String Values: "regular", "small"

Quaqua.List
.style

java.lang.String Values: "plain", "striped"

Client property: JComponent.sizeVariant

Quaqua supports the regular and small size variant.

 

Client property: Quaqua.List.style

The Quaqua Look and Feel supports lists with plain style and with striped style (aka alternating row colors).

The picture below shows a striped list.

Quaqua Look and Feel - striped JList
You can specify the desired style by setting the client property Quaqua.List.style to striped or to plain. If you don't specify a value, the plain style is used.
 

myList.putClientProperty(

   "Quaqua.List.style", "striped"

);

 

Implementing a ListCellRenderer

If you implement a ListCellRenderer on your own, make sure that the renderer component is non-opaque. If your renderer component is opaque, the component obscurs the stripes of a striped list.