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
.
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_CAPTION
The array index for the
activeCaption system color. |
static int |
ACTIVE_CAPTION_BORDER
The array index for the
activeCaptionBorder system color. |
static int |
ACTIVE_CAPTION_TEXT
The array index for the
activeCaptionText system color. |
static SystemColor |
activeCaption
The color rendered for the window-title background of the currently active window.
|
static SystemColor |
activeCaptionBorder
The color rendered for the border around the currently active window.
|
static SystemColor |
activeCaptionText
The color rendered for the window-title text of the currently active window.
|
static SystemColor |
control
The color rendered for the background of control panels and control objects,
such as pushbuttons.
|
static int |
CONTROL
The array index for the
control system color. |
static int |
CONTROL_DK_SHADOW
The array index for the
controlDkShadow system color. |
static int |
CONTROL_HIGHLIGHT
The array index for the
controlHighlight system color. |
static int |
CONTROL_LT_HIGHLIGHT
The array index for the
controlLtHighlight system color. |
static int |
CONTROL_SHADOW
The array index for the
controlShadow system color. |
static int |
CONTROL_TEXT
The array index for the
controlText system color. |
static SystemColor |
controlDkShadow
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons.
|
static SystemColor |
controlHighlight
The color rendered for light areas of 3D control objects, such as pushbuttons.
|
static SystemColor |
controlLtHighlight
The color rendered for highlight areas of 3D control objects, such as pushbuttons.
|
static SystemColor |
controlShadow
The color rendered for shadow areas of 3D control objects, such as pushbuttons.
|
static SystemColor |
controlText
The color rendered for the text of control panels and control objects,
such as pushbuttons.
|
static SystemColor |
desktop
The color rendered for the background of the desktop.
|
static int |
DESKTOP
The array index for the
desktop system color. |
static int |
INACTIVE_CAPTION
The array index for the
inactiveCaption system color. |
static int |
INACTIVE_CAPTION_BORDER
The array index for the
inactiveCaptionBorder system color. |
static int |
INACTIVE_CAPTION_TEXT
The array index for the
inactiveCaptionText system color. |
static SystemColor |
inactiveCaption
The color rendered for the window-title background of inactive windows.
|
static SystemColor |
inactiveCaptionBorder
The color rendered for the border around inactive windows.
|
static SystemColor |
inactiveCaptionText
The color rendered for the window-title text of inactive windows.
|
static SystemColor |
info
The color rendered for the background of tooltips or spot help.
|
static int |
INFO
The array index for the
info system color. |
static int |
INFO_TEXT
The array index for the
infoText system color. |
static SystemColor |
infoText
The color rendered for the text of tooltips or spot help.
|
static SystemColor |
menu
The color rendered for the background of menus.
|
static int |
MENU
The array index for the
menu system color. |
static int |
MENU_TEXT
The array index for the
menuText system color. |
static SystemColor |
menuText
The color rendered for the text of menus.
|
static int |
NUM_COLORS
The number of system colors in the array.
|
static SystemColor |
scrollbar
The color rendered for the background of scrollbars.
|
static int |
SCROLLBAR
The array index for the
scrollbar system color. |
static SystemColor |
text
The color rendered for the background of text control objects, such as
textfields and comboboxes.
|
static int |
TEXT
The array index for the
text system color. |
static int |
TEXT_HIGHLIGHT
The array index for the
textHighlight system color. |
static int |
TEXT_HIGHLIGHT_TEXT
The array index for the
textHighlightText system color. |
static int |
TEXT_INACTIVE_TEXT
The array index for the
textInactiveText system color. |
static int |
TEXT_TEXT
The array index for the
textText system color. |
static SystemColor |
textHighlight
The color rendered for the background of selected items, such as in menus,
comboboxes, and text.
|
static SystemColor |
textHighlightText
The color rendered for the text of selected items, such as in menus, comboboxes,
and text.
|
static SystemColor |
textInactiveText
The color rendered for the text of inactive items, such as in menus.
|
static SystemColor |
textText
The color rendered for the text of text control objects, such as textfields
and comboboxes.
|
static SystemColor |
window
The color rendered for the background of interior regions inside windows.
|
static int |
WINDOW
The array index for the
window system color. |
static int |
WINDOW_BORDER
The array index for the
windowBorder system color. |
static int |
WINDOW_TEXT
The array index for the
windowText system color. |
static SystemColor |
windowBorder
The color rendered for the border around interior regions inside windows.
|
static SystemColor |
windowText
The color rendered for text of interior regions inside windows.
|
black, 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, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of this
Color 's values. |
brighter, createContext, darker, equals, getAlpha, getBlue, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode
desktop
system color.desktop
,
Constant Field ValuesactiveCaption
system color.activeCaption
,
Constant Field ValuesactiveCaptionText
system color.activeCaptionText
,
Constant Field ValuesactiveCaptionBorder
system color.activeCaptionBorder
,
Constant Field ValuesinactiveCaption
system color.inactiveCaption
,
Constant Field ValuesinactiveCaptionText
system color.inactiveCaptionText
,
Constant Field ValuesinactiveCaptionBorder
system color.inactiveCaptionBorder
,
Constant Field Valueswindow
system color.window
,
Constant Field ValueswindowBorder
system color.windowBorder
,
Constant Field ValueswindowText
system color.windowText
,
Constant Field Valuesmenu
system color.menu
,
Constant Field ValuesmenuText
system color.menuText
,
Constant Field Valuestext
system color.text
,
Constant Field ValuestextText
system color.textText
,
Constant Field ValuestextHighlight
system color.textHighlight
,
Constant Field ValuestextHighlightText
system color.textHighlightText
,
Constant Field ValuestextInactiveText
system color.textInactiveText
,
Constant Field Valuescontrol
system color.control
,
Constant Field ValuescontrolText
system color.controlText
,
Constant Field ValuescontrolHighlight
system color.controlHighlight
,
Constant Field ValuescontrolLtHighlight
system color.controlLtHighlight
,
Constant Field ValuescontrolShadow
system color.controlShadow
,
Constant Field ValuescontrolDkShadow
system color.controlDkShadow
,
Constant Field Valuesscrollbar
system color.scrollbar
,
Constant Field Valuesinfo
system color.info
,
Constant Field ValuesinfoText
system color.infoText
,
Constant Field Valuescontrol
background color
to provide a 3D effect.control
background color
to provide a 3D effect.control
background color
to provide a 3D effect.control
background color
to provide a 3D effect.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
.