java.lang.Object
java.awt.Color
java.awt.SystemColor
- All Implemented Interfaces:
- Paint,- Transparency,- Serializable
A class to encapsulate symbolic colors representing the color of
 native GUI objects on a system.  For systems which support the dynamic
 update of the system colors (when the user changes the colors)
 the actual RGB values of these symbolic colors will also change
 dynamically.  In order to compare the "current" RGB value of a
 
SystemColor object with a non-symbolic Color object,
 getRGB should be used rather than equals.
 Note that the way in which these system colors are applied to GUI objects may vary slightly from platform to platform since GUI objects may be rendered differently on each platform.
 System color values may also be available through the getDesktopProperty
 method on java.awt.Toolkit.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe array index for theactiveCaptionsystem color.static final intThe array index for theactiveCaptionBordersystem color.static final intThe array index for theactiveCaptionTextsystem color.static final SystemColorThe color rendered for the window-title background of the currently active window.static final SystemColorThe color rendered for the border around the currently active window.static final SystemColorThe color rendered for the window-title text of the currently active window.static final SystemColorThe color rendered for the background of control panels and control objects, such as pushbuttons.static final intThe array index for thecontrolsystem color.static final intThe array index for thecontrolDkShadowsystem color.static final intThe array index for thecontrolHighlightsystem color.static final intThe array index for thecontrolLtHighlightsystem color.static final intThe array index for thecontrolShadowsystem color.static final intThe array index for thecontrolTextsystem color.static final SystemColorThe color rendered for dark shadow areas on 3D control objects, such as pushbuttons.static final SystemColorThe color rendered for light areas of 3D control objects, such as pushbuttons.static final SystemColorThe color rendered for highlight areas of 3D control objects, such as pushbuttons.static final SystemColorThe color rendered for shadow areas of 3D control objects, such as pushbuttons.static final SystemColorThe color rendered for the text of control panels and control objects, such as pushbuttons.static final SystemColorThe color rendered for the background of the desktop.static final intThe array index for thedesktopsystem color.static final intThe array index for theinactiveCaptionsystem color.static final intThe array index for theinactiveCaptionBordersystem color.static final intThe array index for theinactiveCaptionTextsystem color.static final SystemColorThe color rendered for the window-title background of inactive windows.static final SystemColorThe color rendered for the border around inactive windows.static final SystemColorThe color rendered for the window-title text of inactive windows.static final SystemColorThe color rendered for the background of tooltips or spot help.static final intThe array index for theinfosystem color.static final intThe array index for theinfoTextsystem color.static final SystemColorThe color rendered for the text of tooltips or spot help.static final SystemColorThe color rendered for the background of menus.static final intThe array index for themenusystem color.static final intThe array index for themenuTextsystem color.static final SystemColorThe color rendered for the text of menus.static final intThe number of system colors in the array.static final SystemColorThe color rendered for the background of scrollbars.static final intThe array index for thescrollbarsystem color.static final SystemColorThe color rendered for the background of text control objects, such as textfields and comboboxes.static final intThe array index for thetextsystem color.static final intThe array index for thetextHighlightsystem color.static final intThe array index for thetextHighlightTextsystem color.static final intThe array index for thetextInactiveTextsystem color.static final intThe array index for thetextTextsystem color.static final SystemColorThe color rendered for the background of selected items, such as in menus, comboboxes, and text.static final SystemColorThe color rendered for the text of selected items, such as in menus, comboboxes, and text.static final SystemColorThe color rendered for the text of inactive items, such as in menus.static final SystemColorThe color rendered for the text of text control objects, such as textfields and comboboxes.static final SystemColorThe color rendered for the background of interior regions inside windows.static final intThe array index for thewindowsystem color.static final intThe array index for thewindowBordersystem color.static final intThe array index for thewindowTextsystem color.static final SystemColorThe color rendered for the border around interior regions inside windows.static final SystemColorThe color rendered for text of interior regions inside windows.Fields declared in class java.awt.Colorblack, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOWFields declared in interface java.awt.TransparencyBITMASK, OPAQUE, TRANSLUCENT
- 
Method SummaryMethods declared in class java.awt.Colorbrighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
- 
Field Details- 
DESKTOPThe array index for thedesktopsystem color.- See Also:
 
- 
ACTIVE_CAPTIONThe array index for theactiveCaptionsystem color.- See Also:
 
- 
ACTIVE_CAPTION_TEXTThe array index for theactiveCaptionTextsystem color.- See Also:
 
- 
ACTIVE_CAPTION_BORDERThe array index for theactiveCaptionBordersystem color.- See Also:
 
- 
INACTIVE_CAPTIONThe array index for theinactiveCaptionsystem color.- See Also:
 
- 
INACTIVE_CAPTION_TEXTThe array index for theinactiveCaptionTextsystem color.- See Also:
 
- 
INACTIVE_CAPTION_BORDERThe array index for theinactiveCaptionBordersystem color.- See Also:
 
- 
WINDOWThe array index for thewindowsystem color.- See Also:
 
- 
WINDOW_BORDERThe array index for thewindowBordersystem color.- See Also:
 
- 
WINDOW_TEXTThe array index for thewindowTextsystem color.- See Also:
 
- 
MENUThe array index for themenusystem color.- See Also:
 
- 
MENU_TEXTThe array index for themenuTextsystem color.- See Also:
 
- 
TEXTThe array index for thetextsystem color.- See Also:
 
- 
TEXT_TEXTThe array index for thetextTextsystem color.- See Also:
 
- 
TEXT_HIGHLIGHTThe array index for thetextHighlightsystem color.- See Also:
 
- 
TEXT_HIGHLIGHT_TEXTThe array index for thetextHighlightTextsystem color.- See Also:
 
- 
TEXT_INACTIVE_TEXTThe array index for thetextInactiveTextsystem color.- See Also:
 
- 
CONTROLThe array index for thecontrolsystem color.- See Also:
 
- 
CONTROL_TEXTThe array index for thecontrolTextsystem color.- See Also:
 
- 
CONTROL_HIGHLIGHTThe array index for thecontrolHighlightsystem color.- See Also:
 
- 
CONTROL_LT_HIGHLIGHTThe array index for thecontrolLtHighlightsystem color.- See Also:
 
- 
CONTROL_SHADOWThe array index for thecontrolShadowsystem color.- See Also:
 
- 
CONTROL_DK_SHADOWThe array index for thecontrolDkShadowsystem color.- See Also:
 
- 
SCROLLBARThe array index for thescrollbarsystem color.- See Also:
 
- 
INFOThe array index for theinfosystem color.- See Also:
 
- 
INFO_TEXTThe array index for theinfoTextsystem color.- See Also:
 
- 
NUM_COLORSThe number of system colors in the array.- See Also:
 
- 
desktopThe color rendered for the background of the desktop.
- 
activeCaptionThe color rendered for the window-title background of the currently active window.
- 
activeCaptionTextThe color rendered for the window-title text of the currently active window.
- 
activeCaptionBorderThe color rendered for the border around the currently active window.
- 
inactiveCaptionThe color rendered for the window-title background of inactive windows.
- 
inactiveCaptionTextThe color rendered for the window-title text of inactive windows.
- 
inactiveCaptionBorderThe color rendered for the border around inactive windows.
- 
windowThe color rendered for the background of interior regions inside windows.
- 
windowBorderThe color rendered for the border around interior regions inside windows.
- 
windowTextThe color rendered for text of interior regions inside windows.
- 
textThe color rendered for the background of text control objects, such as textfields and comboboxes.
- 
textTextThe color rendered for the text of text control objects, such as textfields and comboboxes.
- 
textHighlightThe color rendered for the background of selected items, such as in menus, comboboxes, and text.
- 
textHighlightTextThe color rendered for the text of selected items, such as in menus, comboboxes, and text.
- 
textInactiveTextThe color rendered for the text of inactive items, such as in menus.
- 
controlThe color rendered for the background of control panels and control objects, such as pushbuttons.
- 
controlTextThe color rendered for the text of control panels and control objects, such as pushbuttons.
- 
controlHighlightThe color rendered for light areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect.
- 
controlLtHighlightThe color rendered for highlight areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect.
- 
controlShadowThe color rendered for shadow areas of 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect.
- 
controlDkShadowThe color rendered for dark shadow areas on 3D control objects, such as pushbuttons. This color is typically derived from thecontrolbackground color to provide a 3D effect.
- 
scrollbarThe color rendered for the background of scrollbars.
- 
infoThe color rendered for the background of tooltips or spot help.
- 
infoTextThe color rendered for the text of tooltips or spot help.
 
- 
- 
Method Details- 
toStringReturns a string representation of thisColor's values. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not benull.
 
-