Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
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

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/awt/systemcolor.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut