O'Reilly logo

Graphic Java™ 2, Volume II: Swing, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Pluggable Look & Feel Constants

Table B-1 lists the constants defined by the javax.swing.plaf.basic.BasicLookAndFeel class. The constants are used as default values for many aspects of Swing component's look and feel. See “Pluggable Look and Feel” for more information concerning the use of the constants listed in Table B-1.

Table B-1. UIManager Constants[1]

String Constant Default Value
Button.font dialogPlain12
Button.background control
Button.foreground controlText
Button.border buttonBorder
Button.margin new InsetsUIResource(2,14,2,14)
Button.textIconGap new Integer(4)
Button.textShiftOffset new Integer(0)
ToggleButton.font dialogPlain12
ToggleButton.background control
ToggleButton.foreground controlText
ToggleButton.border buttonToggleBorder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required