java.awt.SystemColor (JDK 1.1)
Instances of the SystemColor class represent colors used in the system desktop. You can use these colors to produce applications and custom components that fit well in the desktop color scheme. On platforms that allow the desktop colors to be modified dynamically, the actual color represented by these symbolic system colors may be dynamically updated.
The SystemColor class does not have a constructor, but it defines constant SystemColor objects that represent each of the symbolic colors used by the system desktop.
If you need to compare a SystemColor object to a regular Color object, use the getRGB() method of both objects and compare the resulting values.
public final classSystemColorextends Color implements Serializable { //No Constructor//Color Constantspublic static final SystemColoractiveCaption,activeCaptionBorder,activeCaptionText; public static final SystemColorcontrol,controlDkShadow,controlHighlight; public static final SystemColorcontrolLtHighlight,controlShadow,controlText; public static final SystemColordesktop; public static final SystemColorinactiveCaption,inactiveCaptionBorder,inactiveCaptionText; public static final SystemColorinfo,infoText; public static final SystemColormenu,menuText; public static final SystemColorscrollbar; public static final SystemColortext,textHighlight,textHighlightText; public static final SystemColortextInactiveText,textText; public static final SystemColorwindow,windowBorder,windowText; //Color Index Constantspublic static final intACTIVE_CAPTION,ACTIVE_CAPTION_BORDER,ACTIVE_CAPTION_TEXT; public static final intCONTROL,CONTROL_DK_SHADOW,CONTROL_HIGHLIGHT; public static final intCONTROL_LT_HIGHLIGHT,CONTROL_SHADOW,CONTROL_TEXT; public static final intDESKTOP; public static final intINACTIVE_CAPTION,INACTIVE_CAPTION_BORDER,INACTIVE_CAPTION_TEXT; public static final intINFO,INFO_TEXT; public static final intMENU,MENU_TEXT; public static final intNUM_COLORS; public static final intSCROLLBAR; public static final intTEXT,TEXT_HIGHLIGHT,TEXT_HIGHLIGHT_TEXT; public static final intTEXT_INACTIVE_TEXT,TEXT_TEXT; public static final intWINDOW,WINDOW_BORDER,WINDOW_TEXT; //Public Instance Methodspublic intgetRGB(); //Overrides Colorpublic StringtoString(); //Overrides Color}
Hierarchy:
Object->Color(Serializable)->SystemColor(Serializable)