java.lang.Object | ||
↳ | java.awt.Color | |
↳ | java.awt.SystemColor |
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
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ACTIVE_CAPTION | The array index for the
activeCaption system color. |
|||||||||
int | ACTIVE_CAPTION_BORDER | The array index for the
activeCaptionBorder system color. |
|||||||||
int | ACTIVE_CAPTION_TEXT | The array index for the
activeCaptionText system color. |
|||||||||
int | CONTROL | The array index for the
control system color. |
|||||||||
int | CONTROL_DK_SHADOW | The array index for the
controlDkShadow system color. |
|||||||||
int | CONTROL_HIGHLIGHT | The array index for the
controlHighlight system color. |
|||||||||
int | CONTROL_LT_HIGHLIGHT | The array index for the
controlLtHighlight system color. |
|||||||||
int | CONTROL_SHADOW | The array index for the
controlShadow system color. |
|||||||||
int | CONTROL_TEXT | The array index for the
controlText system color. |
|||||||||
int | DESKTOP | The array index for the
desktop system color. |
|||||||||
int | INACTIVE_CAPTION | The array index for the
inactiveCaption system color. |
|||||||||
int | INACTIVE_CAPTION_BORDER | The array index for the
inactiveCaptionBorder system color. |
|||||||||
int | INACTIVE_CAPTION_TEXT | The array index for the
inactiveCaptionText system color. |
|||||||||
int | INFO | The array index for the
info system color. |
|||||||||
int | INFO_TEXT | The array index for the
infoText system color. |
|||||||||
int | MENU | The array index for the
menu system color. |
|||||||||
int | MENU_TEXT | The array index for the
menuText system color. |
|||||||||
int | NUM_COLORS | The number of system colors in the array. | |||||||||
int | SCROLLBAR | The array index for the
scrollbar system color. |
|||||||||
int | TEXT | The array index for the
text system color. |
|||||||||
int | TEXT_HIGHLIGHT | The array index for the
textHighlight system color. |
|||||||||
int | TEXT_HIGHLIGHT_TEXT | The array index for the
textHighlightText system color. |
|||||||||
int | TEXT_INACTIVE_TEXT | The array index for the
textInactiveText system color. |
|||||||||
int | TEXT_TEXT | The array index for the
textText system color. |
|||||||||
int | WINDOW | The array index for the
window system color. |
|||||||||
int | WINDOW_BORDER | The array index for the
windowBorder system color. |
|||||||||
int | WINDOW_TEXT | The array index for the
windowText system color. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.awt.Transparency
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
activeCaption | The color rendered for the window-title background of the currently active window. | ||||||||||
activeCaptionBorder | The color rendered for the border around the currently active window. | ||||||||||
activeCaptionText | The color rendered for the window-title text of the currently active window. | ||||||||||
control | The color rendered for the background of control panels and control objects, such as pushbuttons. | ||||||||||
controlDkShadow | The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. | ||||||||||
controlHighlight | The color rendered for light areas of 3D control objects, such as pushbuttons. | ||||||||||
controlLtHighlight | The color rendered for highlight areas of 3D control objects, such as pushbuttons. | ||||||||||
controlShadow | The color rendered for shadow areas of 3D control objects, such as pushbuttons. | ||||||||||
controlText | The color rendered for the text of control panels and control objects, such as pushbuttons. | ||||||||||
desktop | The color rendered for the background of the desktop. | ||||||||||
inactiveCaption | The color rendered for the window-title background of inactive windows. | ||||||||||
inactiveCaptionBorder | The color rendered for the border around inactive windows. | ||||||||||
inactiveCaptionText | The color rendered for the window-title text of inactive windows. | ||||||||||
info | The color rendered for the background of tooltips or spot help. | ||||||||||
infoText | The color rendered for the text of tooltips or spot help. | ||||||||||
menu | The color rendered for the background of menus. | ||||||||||
menuText | The color rendered for the text of menus. | ||||||||||
scrollbar | The color rendered for the background of scrollbars. | ||||||||||
text | The color rendered for the background of text control objects, such as textfields and comboboxes. | ||||||||||
textHighlight | The color rendered for the background of selected items, such as in menus, comboboxes, and text. | ||||||||||
textHighlightText | The color rendered for the text of selected items, such as in menus, comboboxes, and text. | ||||||||||
textInactiveText | The color rendered for the text of inactive items, such as in menus. | ||||||||||
textText | The color rendered for the text of text control objects, such as textfields and comboboxes. | ||||||||||
window | The color rendered for the background of interior regions inside windows. | ||||||||||
windowBorder | The color rendered for the border around interior regions inside windows. | ||||||||||
windowText | The color rendered for text of interior regions inside windows. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.Color
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string representation of this
Color 's values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.Color
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.awt.Paint
| |||||||||||
From interface
java.awt.Transparency
|
The number of system colors in the array.
The color rendered for the window-title background of the currently active window.
The color rendered for the border around the currently active window.
The color rendered for the window-title text of the currently active window.
The color rendered for the background of control panels and control objects, such as pushbuttons.
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.
This color is typically derived from the control
background color
to provide a 3D effect.
The color rendered for light areas of 3D control objects, such as pushbuttons.
This color is typically derived from the control
background color
to provide a 3D effect.
The color rendered for highlight areas of 3D control objects, such as pushbuttons.
This color is typically derived from the control
background color
to provide a 3D effect.
The color rendered for shadow areas of 3D control objects, such as pushbuttons.
This color is typically derived from the control
background color
to provide a 3D effect.
The color rendered for the text of control panels and control objects, such as pushbuttons.
The color rendered for the window-title background of inactive windows.
The color rendered for the border around inactive windows.
The color rendered for the window-title text of inactive windows.
The color rendered for the background of tooltips or spot help.
The color rendered for the background of text control objects, such as textfields and comboboxes.
The color rendered for the background of selected items, such as in menus, comboboxes, and text.
The color rendered for the text of selected items, such as in menus, comboboxes, and text.
The color rendered for the text of inactive items, such as in menus.
The color rendered for the text of text control objects, such as textfields and comboboxes.
The color rendered for the background of interior regions inside windows.
The color rendered for the border around interior regions inside windows.
The color rendered for text of interior regions inside windows.
Returns a string representation of this Color
'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 be null
.
Color