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.
Toolkit#getDesktopProperty
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACTIVE_CAPTION
The array index for the
|
| public static final int | ACTIVE_CAPTION_BORDER
The array index for the
|
| public static final int | ACTIVE_CAPTION_TEXT
The array index for the
|
| public static final SystemColor | activeCaption
The color rendered for the window-title background of the currently active window. |
| public static final SystemColor | activeCaptionBorder
The color rendered for the border around the currently active window. |
| public static final SystemColor | activeCaptionText
The color rendered for the window-title text of the currently active window. |
| public static final int | |
| public static final SystemColor | control
The color rendered for the background of control panels and control objects, such as pushbuttons. |
| public static final int | CONTROL_DK_SHADOW
The array index for the
|
| public static final int | CONTROL_HIGHLIGHT
The array index for the
|
| public static final int | CONTROL_LT_HIGHLIGHT
The array index for the
|
| public static final int | CONTROL_SHADOW
The array index for the
|
| public static final int | CONTROL_TEXT
The array index for the
|
| public static final SystemColor | controlDkShadow
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. |
| public static final SystemColor | controlHighlight
The color rendered for light areas of 3D control objects, such as pushbuttons. |
| public static final SystemColor | controlLtHighlight
The color rendered for highlight areas of 3D control objects, such as pushbuttons. |
| public static final SystemColor | controlShadow
The color rendered for shadow areas of 3D control objects, such as pushbuttons. |
| public static final SystemColor | controlText
The color rendered for the text of control panels and control objects, such as pushbuttons. |
| public static final int | |
| public static final SystemColor | desktop
The color rendered for the background of the desktop. |
| public static final int | INACTIVE_CAPTION
The array index for the
|
| public static final int | INACTIVE_CAPTION_BORDER
The array index for the
|
| public static final int | INACTIVE_CAPTION_TEXT
The array index for the
|
| public static final SystemColor | inactiveCaption
The color rendered for the window-title background of inactive windows. |
| public static final SystemColor | inactiveCaptionBorder
The color rendered for the border around inactive windows. |
| public static final SystemColor | inactiveCaptionText
The color rendered for the window-title text of inactive windows. |
| private transient int | |
| public static final int | |
| public static final SystemColor | info
The color rendered for the background of tooltips or spot help. |
| public static final int | |
| public static final SystemColor | infoText
The color rendered for the text of tooltips or spot help. |
| public static final int | |
| public static final SystemColor | menu
The color rendered for the background of menus. |
| public static final int | |
| public static final SystemColor | menuText
The color rendered for the text of menus. |
| public static final int | NUM_COLORS
The number of system colors in the array. |
| public static final int | |
| public static final SystemColor | scrollbar
The color rendered for the background of scrollbars. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability.
|
| private static SystemColor[] | |
| private static int[] | |
| public static final int | |
| public static final SystemColor | text
The color rendered for the background of text control objects, such as textfields and comboboxes. |
| public static final int | TEXT_HIGHLIGHT
The array index for the
|
| public static final int | TEXT_HIGHLIGHT_TEXT
The array index for the
|
| public static final int | TEXT_INACTIVE_TEXT
The array index for the
|
| public static final int | |
| public static final SystemColor | textHighlight
The color rendered for the background of selected items, such as in menus, comboboxes, and text. |
| public static final SystemColor | textHighlightText
The color rendered for the text of selected items, such as in menus, comboboxes, and text. |
| public static final SystemColor | textInactiveText
The color rendered for the text of inactive items, such as in menus. |
| public static final SystemColor | textText
The color rendered for the text of text control objects, such as textfields and comboboxes. |
| public static final int | |
| public static final SystemColor | window
The color rendered for the background of interior regions inside windows. |
| public static final int | WINDOW_BORDER
The array index for the
|
| public static final int | WINDOW_TEXT
The array index for the
|
| public static final SystemColor | windowBorder
The color rendered for the border around interior regions inside windows. |
| public static final SystemColor | windowText
The color rendered for text of interior regions inside windows. |
| Access | Constructor and Description |
|---|---|
| private | SystemColor(byte index)
Creates a symbolic color that represents an indexed entry into system color cache. |
| Modifier and Type | Method and Description |
|---|---|
| private Object | Returns: one of theSystemColor static object
fields that refers to the same system color.The design of the |
| public String | Returns: a string representation of thisColorOverrides java. Returns a string representation of this |
| private static void | |
| private Object | Returns: a proxySystemColor object with its value
replaced by the corresponding system color index.Returns a specialized version of the |
| ACTIVE_CAPTION | back to summary |
|---|---|
| public static final int ACTIVE_CAPTION The array index for the
| |
| ACTIVE_CAPTION_BORDER | back to summary |
|---|---|
| public static final int ACTIVE_CAPTION_BORDER The array index for the
| |
| ACTIVE_CAPTION_TEXT | back to summary |
|---|---|
| public static final int ACTIVE_CAPTION_TEXT The array index for the
| |
| activeCaption | back to summary |
|---|---|
| public static final SystemColor activeCaption The color rendered for the window-title background of the currently active window. | |
| activeCaptionBorder | back to summary |
|---|---|
| public static final SystemColor activeCaptionBorder The color rendered for the border around the currently active window. | |
| activeCaptionText | back to summary |
|---|---|
| public static final SystemColor activeCaptionText The color rendered for the window-title text of the currently active window. | |
| CONTROL | back to summary |
|---|---|
| public static final int CONTROL The array index for the
| |
| control | back to summary |
|---|---|
| public static final SystemColor control The color rendered for the background of control panels and control objects, such as pushbuttons. | |
| CONTROL_DK_SHADOW | back to summary |
|---|---|
| public static final int CONTROL_DK_SHADOW The array index for the
| |
| CONTROL_HIGHLIGHT | back to summary |
|---|---|
| public static final int CONTROL_HIGHLIGHT The array index for the
| |
| CONTROL_LT_HIGHLIGHT | back to summary |
|---|---|
| public static final int CONTROL_LT_HIGHLIGHT The array index for the
| |
| CONTROL_SHADOW | back to summary |
|---|---|
| public static final int CONTROL_SHADOW The array index for the
| |
| CONTROL_TEXT | back to summary |
|---|---|
| public static final int CONTROL_TEXT The array index for the
| |
| controlDkShadow | back to summary |
|---|---|
| public static final SystemColor controlDkShadow The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.
This color is typically derived from the | |
| controlHighlight | back to summary |
|---|---|
| public static final SystemColor controlHighlight The color rendered for light areas of 3D control objects, such as pushbuttons.
This color is typically derived from the | |
| controlLtHighlight | back to summary |
|---|---|
| public static final SystemColor controlLtHighlight The color rendered for highlight areas of 3D control objects, such as pushbuttons.
This color is typically derived from the | |
| controlShadow | back to summary |
|---|---|
| public static final SystemColor controlShadow The color rendered for shadow areas of 3D control objects, such as pushbuttons.
This color is typically derived from the | |
| controlText | back to summary |
|---|---|
| public static final SystemColor controlText The color rendered for the text of control panels and control objects, such as pushbuttons. | |
| DESKTOP | back to summary |
|---|---|
| public static final int DESKTOP The array index for the
| |
| desktop | back to summary |
|---|---|
| public static final SystemColor desktop The color rendered for the background of the desktop. | |
| INACTIVE_CAPTION | back to summary |
|---|---|
| public static final int INACTIVE_CAPTION The array index for the
| |
| INACTIVE_CAPTION_BORDER | back to summary |
|---|---|
| public static final int INACTIVE_CAPTION_BORDER The array index for the
| |
| INACTIVE_CAPTION_TEXT | back to summary |
|---|---|
| public static final int INACTIVE_CAPTION_TEXT The array index for the
| |
| inactiveCaption | back to summary |
|---|---|
| public static final SystemColor inactiveCaption The color rendered for the window-title background of inactive windows. | |
| inactiveCaptionBorder | back to summary |
|---|---|
| public static final SystemColor inactiveCaptionBorder The color rendered for the border around inactive windows. | |
| inactiveCaptionText | back to summary |
|---|---|
| public static final SystemColor inactiveCaptionText The color rendered for the window-title text of inactive windows. | |
| index | back to summary |
|---|---|
| private transient int index | |
| INFO | back to summary |
|---|---|
| public static final int INFO The array index for the
| |
| info | back to summary |
|---|---|
| public static final SystemColor info The color rendered for the background of tooltips or spot help. | |
| INFO_TEXT | back to summary |
|---|---|
| public static final int INFO_TEXT The array index for the
| |
| infoText | back to summary |
|---|---|
| public static final SystemColor infoText The color rendered for the text of tooltips or spot help. | |
| MENU | back to summary |
|---|---|
| public static final int MENU The array index for the
| |
| menu | back to summary |
|---|---|
| public static final SystemColor menu The color rendered for the background of menus. | |
| MENU_TEXT | back to summary |
|---|---|
| public static final int MENU_TEXT The array index for the
| |
| menuText | back to summary |
|---|---|
| public static final SystemColor menuText The color rendered for the text of menus. | |
| NUM_COLORS | back to summary |
|---|---|
| public static final int NUM_COLORS The number of system colors in the array. | |
| SCROLLBAR | back to summary |
|---|---|
| public static final int SCROLLBAR The array index for the
| |
| scrollbar | back to summary |
|---|---|
| public static final SystemColor scrollbar The color rendered for the background of scrollbars. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.1 for interoperability. | |
| systemColorObjects | back to summary |
|---|---|
| private static SystemColor[] systemColorObjects | |
| systemColors | back to summary |
|---|---|
| private static int[] systemColors | |
| TEXT | back to summary |
|---|---|
| public static final int TEXT The array index for the
| |
| text | back to summary |
|---|---|
| public static final SystemColor text The color rendered for the background of text control objects, such as textfields and comboboxes. | |
| TEXT_HIGHLIGHT | back to summary |
|---|---|
| public static final int TEXT_HIGHLIGHT The array index for the
| |
| TEXT_HIGHLIGHT_TEXT | back to summary |
|---|---|
| public static final int TEXT_HIGHLIGHT_TEXT The array index for the
| |
| TEXT_INACTIVE_TEXT | back to summary |
|---|---|
| public static final int TEXT_INACTIVE_TEXT The array index for the
| |
| TEXT_TEXT | back to summary |
|---|---|
| public static final int TEXT_TEXT The array index for the
| |
| textHighlight | back to summary |
|---|---|
| public static final SystemColor textHighlight The color rendered for the background of selected items, such as in menus, comboboxes, and text. | |
| textHighlightText | back to summary |
|---|---|
| public static final SystemColor textHighlightText The color rendered for the text of selected items, such as in menus, comboboxes, and text. | |
| textInactiveText | back to summary |
|---|---|
| public static final SystemColor textInactiveText The color rendered for the text of inactive items, such as in menus. | |
| textText | back to summary |
|---|---|
| public static final SystemColor textText The color rendered for the text of text control objects, such as textfields and comboboxes. | |
| WINDOW | back to summary |
|---|---|
| public static final int WINDOW The array index for the
| |
| window | back to summary |
|---|---|
| public static final SystemColor window The color rendered for the background of interior regions inside windows. | |
| WINDOW_BORDER | back to summary |
|---|---|
| public static final int WINDOW_BORDER The array index for the
| |
| WINDOW_TEXT | back to summary |
|---|---|
| public static final int WINDOW_TEXT The array index for the
| |
| windowBorder | back to summary |
|---|---|
| public static final SystemColor windowBorder The color rendered for the border around interior regions inside windows. | |
| windowText | back to summary |
|---|---|
| public static final SystemColor windowText The color rendered for text of interior regions inside windows. | |
| SystemColor | back to summary |
|---|---|
| private SystemColor(byte index) Creates a symbolic color that represents an indexed entry into system color cache. Used by above static system colors. | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() The design of the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this
| |
| updateSystemColors | back to summary |
|---|---|
| private static void updateSystemColors() Called from | |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException Returns a specialized version of the
| |