Class SystemColor
- All Implemented Interfaces:
-
Paint
,Transparency
,Serializable
public final class SystemColor extends Color implements Serializable
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
.
Field Summary
Modifier and Type | Field | Description |
---|---|---|
static final int |
ACTIVE_CAPTION |
The array index for the activeCaption system color. |
static final int |
ACTIVE_CAPTION_BORDER |
The array index for the activeCaptionBorder system color. |
static final int |
ACTIVE_CAPTION_TEXT |
The array index for the activeCaptionText system color. |
static final SystemColor |
activeCaption |
The color rendered for the window-title background of the currently active window. |
static final SystemColor |
activeCaptionBorder |
The color rendered for the border around the currently active window. |
static final SystemColor |
activeCaptionText |
The color rendered for the window-title text of the currently active window. |
static final SystemColor |
control |
The color rendered for the background of control panels and control objects, such as pushbuttons. |
static final int |
CONTROL |
The array index for the control system color. |
static final int |
CONTROL_DK_SHADOW |
The array index for the controlDkShadow system color. |
static final int |
CONTROL_HIGHLIGHT |
The array index for the controlHighlight system color. |
static final int |
CONTROL_LT_HIGHLIGHT |
The array index for the controlLtHighlight system color. |
static final int |
CONTROL_SHADOW |
The array index for the controlShadow system color. |
static final int |
CONTROL_TEXT |
The array index for the controlText system color. |
static final SystemColor |
controlDkShadow |
The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. |
static final SystemColor |
controlHighlight |
The color rendered for light areas of 3D control objects, such as pushbuttons. |
static final SystemColor |
controlLtHighlight |
The color rendered for highlight areas of 3D control objects, such as pushbuttons. |
static final SystemColor |
controlShadow |
The color rendered for shadow areas of 3D control objects, such as pushbuttons. |
static final SystemColor |
controlText |
The color rendered for the text of control panels and control objects, such as pushbuttons. |
static final SystemColor |
desktop |
The color rendered for the background of the desktop. |
static final int |
DESKTOP |
The array index for the desktop system color. |
static final int |
INACTIVE_CAPTION |
The array index for the inactiveCaption system color. |
static final int |
INACTIVE_CAPTION_BORDER |
The array index for the inactiveCaptionBorder system color. |
static final int |
INACTIVE_CAPTION_TEXT |
The array index for the inactiveCaptionText system color. |
static final SystemColor |
inactiveCaption |
The color rendered for the window-title background of inactive windows. |
static final SystemColor |
inactiveCaptionBorder |
The color rendered for the border around inactive windows. |
static final SystemColor |
inactiveCaptionText |
The color rendered for the window-title text of inactive windows. |
static final SystemColor |
info |
The color rendered for the background of tooltips or spot help. |
static final int |
INFO |
The array index for the info system color. |
static final int |
INFO_TEXT |
The array index for the infoText system color. |
static final SystemColor |
infoText |
The color rendered for the text of tooltips or spot help. |
static final SystemColor |
menu |
The color rendered for the background of menus. |
static final int |
MENU |
The array index for the menu system color. |
static final int |
MENU_TEXT |
The array index for the menuText system color. |
static final SystemColor |
menuText |
The color rendered for the text of menus. |
static final int |
NUM_COLORS |
The number of system colors in the array. |
static final SystemColor |
scrollbar |
The color rendered for the background of scrollbars. |
static final int |
SCROLLBAR |
The array index for the scrollbar system color. |
static final SystemColor |
text |
The color rendered for the background of text control objects, such as textfields and comboboxes. |
static final int |
TEXT |
The array index for the text system color. |
static final int |
TEXT_HIGHLIGHT |
The array index for the textHighlight system color. |
static final int |
TEXT_HIGHLIGHT_TEXT |
The array index for the textHighlightText system color. |
static final int |
TEXT_INACTIVE_TEXT |
The array index for the textInactiveText system color. |
static final int |
TEXT_TEXT |
The array index for the textText system color. |
static final SystemColor |
textHighlight |
The color rendered for the background of selected items, such as in menus, comboboxes, and text. |
static final SystemColor |
textHighlightText |
The color rendered for the text of selected items, such as in menus, comboboxes, and text. |
static final SystemColor |
textInactiveText |
The color rendered for the text of inactive items, such as in menus. |
static final SystemColor |
textText |
The color rendered for the text of text control objects, such as textfields and comboboxes. |
static final SystemColor |
window |
The color rendered for the background of interior regions inside windows. |
static final int |
WINDOW |
The array index for the window system color. |
static final int |
WINDOW_BORDER |
The array index for the windowBorder system color. |
static final int |
WINDOW_TEXT |
The array index for the windowText system color. |
static final SystemColor |
windowBorder |
The color rendered for the border around interior regions inside windows. |
static final SystemColor |
windowText |
The color rendered for text of interior regions inside windows. |
Fields declared in class java.awt.Color
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
Fields declared in interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
Method Summary
Methods declared in class java.awt.Color
brighter, 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
DESKTOP
@Native public static final int DESKTOP
desktop
system color.- See Also:
ACTIVE_CAPTION
@Native public static final int ACTIVE_CAPTION
activeCaption
system color.- See Also:
ACTIVE_CAPTION_TEXT
@Native public static final int ACTIVE_CAPTION_TEXT
activeCaptionText
system color.- See Also:
ACTIVE_CAPTION_BORDER
@Native public static final int ACTIVE_CAPTION_BORDER
activeCaptionBorder
system color.- See Also:
INACTIVE_CAPTION
@Native public static final int INACTIVE_CAPTION
inactiveCaption
system color.- See Also:
INACTIVE_CAPTION_TEXT
@Native public static final int INACTIVE_CAPTION_TEXT
inactiveCaptionText
system color.- See Also:
INACTIVE_CAPTION_BORDER
@Native public static final int INACTIVE_CAPTION_BORDER
inactiveCaptionBorder
system color.- See Also:
WINDOW
@Native public static final int WINDOW
window
system color.- See Also:
WINDOW_BORDER
@Native public static final int WINDOW_BORDER
windowBorder
system color.- See Also:
WINDOW_TEXT
@Native public static final int WINDOW_TEXT
windowText
system color.- See Also:
MENU
@Native public static final int MENU
menu
system color.- See Also:
MENU_TEXT
@Native public static final int MENU_TEXT
menuText
system color.- See Also:
TEXT
@Native public static final int TEXT
text
system color.- See Also:
TEXT_TEXT
@Native public static final int TEXT_TEXT
textText
system color.- See Also:
TEXT_HIGHLIGHT
@Native public static final int TEXT_HIGHLIGHT
textHighlight
system color.- See Also:
TEXT_HIGHLIGHT_TEXT
@Native public static final int TEXT_HIGHLIGHT_TEXT
textHighlightText
system color.- See Also:
TEXT_INACTIVE_TEXT
@Native public static final int TEXT_INACTIVE_TEXT
textInactiveText
system color.- See Also:
CONTROL
@Native public static final int CONTROL
control
system color.- See Also:
CONTROL_TEXT
@Native public static final int CONTROL_TEXT
controlText
system color.- See Also:
CONTROL_HIGHLIGHT
@Native public static final int CONTROL_HIGHLIGHT
controlHighlight
system color.- See Also:
CONTROL_LT_HIGHLIGHT
@Native public static final int CONTROL_LT_HIGHLIGHT
controlLtHighlight
system color.- See Also:
CONTROL_SHADOW
@Native public static final int CONTROL_SHADOW
controlShadow
system color.- See Also:
CONTROL_DK_SHADOW
@Native public static final int CONTROL_DK_SHADOW
controlDkShadow
system color.- See Also:
SCROLLBAR
@Native public static final int SCROLLBAR
scrollbar
system color.- See Also:
INFO
@Native public static final int INFO
info
system color.- See Also:
INFO_TEXT
@Native public static final int INFO_TEXT
infoText
system color.- See Also:
NUM_COLORS
@Native public static final int NUM_COLORS
- See Also:
desktop
public static final SystemColor desktop
activeCaption
public static final SystemColor activeCaption
activeCaptionText
public static final SystemColor activeCaptionText
activeCaptionBorder
public static final SystemColor activeCaptionBorder
inactiveCaption
public static final SystemColor inactiveCaption
inactiveCaptionText
public static final SystemColor inactiveCaptionText
inactiveCaptionBorder
public static final SystemColor inactiveCaptionBorder
window
public static final SystemColor window
windowBorder
public static final SystemColor windowBorder
windowText
public static final SystemColor windowText
text
public static final SystemColor text
textText
public static final SystemColor textText
textHighlight
public static final SystemColor textHighlight
textHighlightText
public static final SystemColor textHighlightText
textInactiveText
public static final SystemColor textInactiveText
control
public static final SystemColor control
controlText
public static final SystemColor controlText
controlHighlight
public static final SystemColor controlHighlight
control
background color to provide a 3D effect.controlLtHighlight
public static final SystemColor controlLtHighlight
control
background color to provide a 3D effect.controlShadow
public static final SystemColor controlShadow
control
background color to provide a 3D effect.controlDkShadow
public static final SystemColor controlDkShadow
control
background color to provide a 3D effect.scrollbar
public static final SystemColor scrollbar
info
public static final SystemColor info
infoText
public static final SystemColor infoText
Method Details
toString
public String toString()
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
.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/SystemColor.html