java.awt

Class SystemColor

  • All Implemented Interfaces:
    Paint, Transparency, Serializable

    public final class SystemColor
    extends Color
    implements Serializable
    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.

    See Also:
    Toolkit.getDesktopProperty(java.lang.String), Serialized Form
    • Field Detail

      • NUM_COLORS

        public static final int NUM_COLORS
        The number of system colors in the array.
        See Also:
        Constant Field Values
      • desktop

        public static final SystemColor desktop
        The color rendered for the background of the desktop.
      • activeCaption

        public static final SystemColor activeCaption
        The color rendered for the window-title background of the currently active window.
      • activeCaptionText

        public static final SystemColor activeCaptionText
        The color rendered for the window-title text of the currently active window.
      • activeCaptionBorder

        public static final SystemColor activeCaptionBorder
        The color rendered for the border around the currently active window.
      • inactiveCaption

        public static final SystemColor inactiveCaption
        The color rendered for the window-title background of inactive windows.
      • inactiveCaptionText

        public static final SystemColor inactiveCaptionText
        The color rendered for the window-title text of inactive windows.
      • inactiveCaptionBorder

        public static final SystemColor inactiveCaptionBorder
        The color rendered for the border around inactive windows.
      • window

        public static final SystemColor window
        The color rendered for the background of interior regions inside windows.
      • windowBorder

        public static final SystemColor windowBorder
        The color rendered for the border around interior regions inside windows.
      • windowText

        public static final SystemColor windowText
        The color rendered for text of interior regions inside windows.
      • public static final SystemColor menu
        The color rendered for the background of menus.
      • public static final SystemColor menuText
        The color rendered for the text of menus.
      • text

        public static final SystemColor text
        The color rendered for the background of text control objects, such as textfields and comboboxes.
      • textText

        public static final SystemColor textText
        The color rendered for the text of text control objects, such as textfields and comboboxes.
      • textHighlight

        public static final SystemColor textHighlight
        The color rendered for the background of selected items, such as in menus, comboboxes, and text.
      • textHighlightText

        public static final SystemColor textHighlightText
        The color rendered for the text of selected items, such as in menus, comboboxes, and text.
      • textInactiveText

        public static final SystemColor textInactiveText
        The color rendered for the text of inactive items, such as in menus.
      • control

        public static final SystemColor control
        The color rendered for the background of control panels and control objects, such as pushbuttons.
      • controlText

        public static final SystemColor controlText
        The color rendered for the text of control panels and control objects, such as pushbuttons.
      • controlHighlight

        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 control background color to provide a 3D effect.
      • controlLtHighlight

        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 control background color to provide a 3D effect.
      • controlShadow

        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 control background color to provide a 3D effect.
      • controlDkShadow

        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 control background color to provide a 3D effect.
      • scrollbar

        public static final SystemColor scrollbar
        The color rendered for the background of scrollbars.
      • info

        public static final SystemColor info
        The color rendered for the background of tooltips or spot help.
      • infoText

        public static final SystemColor infoText
        The color rendered for the text of tooltips or spot help.
    • Method Detail

      • toString

        public String toString()
        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.
        Overrides:
        toString in class Color
        Returns:
        a string representation of this Color

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/awt/SystemColor.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut