O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, 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

System Colors

System colors represent colors used for native GUI controls. The colors are available as public static members of the java.awt.SystemColors class and, which are listed in Table 4-4.

Table 4-4. AWT SystemColor Instances and Default Values
Instance Name Represents Default Value
activeCaption Active caption background Color(0,0,128)
activeCaptionBorder Active caption border lightGray
activeCaptionText Active caption text white
control Control background lightGray
controlDkShadow Control dark shadow black
controlHighlight Control highlight white
controlLtHighlight Control light highlight Color(224,224,224)
controlShadow Control shadow gray
controlText Control text black
desktop Desktop background Color(0,92,92)
inactiveCaption Inactive ...

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