JButton

Client properties:

Property

Type Notes

JComponent.sizeVariant

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

Quaqua.Button
.style

java.lang.String Values: "push", "square", "bevel", "help", "placard", "colorWell", "tableHeader"
JButton
.buttonType
java.lang.String Values: "square", "gradient", "bevel", "textured","roundRect", "recessed","help"
Quaqua.Component
.visualMargin
java.awt.Insets

See layout

Client property: JComponent.sizeVariant

Quaqua supports the regular and small size variant.

Client property: Quaqua.Component.visualMargin

This client property can be used to change the visual margin of the JButton. For details see layout.

Client property: Quaqua.Button.style

The pictures below shows the effect of the styles. The styles are available for the regular System Font of Mac OS X (Lucida Grande 13) and the Small System Font (Lucida Grande 11). The styles work also with other font sizes, but then, the results aren't necessarily optimal.

Quaqua Look and Feel - JButton styles


The following code snippet shows how to use the client property Quaqua.Button.style:
 

myButton.putClientProperty(

   "Quaqua.Button.style", "bevel"

);