Enum LookAndFeels

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LookAndFeels>

    public enum LookAndFeels
    extends java.lang.Enum<LookAndFeels>
    The enum class LookAndFeels provides constants with the fully qualified Names of look and feel classes.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      GTK
      The GTK look and feel class
      METAL
      The METAL look and feel class
      MOTIF
      The MOTIF look and feel class
      MULTI
      The MULTI look and feel class
      NIMBUS
      The NIMBUS look and feel class
      SYNTH
      The SYNTH look and feel class
      SYSTEM
      The SYSTEM look and feel class
      WINDOWS
      The WINDOWS look and feel class
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LookAndFeels setLookAndFeel​(@NonNull LookAndFeels lookAndFeels, @NonNull java.awt.Component component)
      Sets the given LookAndFeels to the given Component and returns given LookAndFeels
      static LookAndFeels valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LookAndFeels[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • GTK

        public static final LookAndFeels GTK
        The GTK look and feel class
      • METAL

        public static final LookAndFeels METAL
        The METAL look and feel class
      • MOTIF

        public static final LookAndFeels MOTIF
        The MOTIF look and feel class
      • MULTI

        public static final LookAndFeels MULTI
        The MULTI look and feel class
      • NIMBUS

        public static final LookAndFeels NIMBUS
        The NIMBUS look and feel class
      • SYNTH

        public static final LookAndFeels SYNTH
        The SYNTH look and feel class
      • SYSTEM

        public static final LookAndFeels SYSTEM
        The SYSTEM look and feel class
      • WINDOWS

        public static final LookAndFeels WINDOWS
        The WINDOWS look and feel class
    • Method Detail

      • values

        public static LookAndFeels[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LookAndFeels c : LookAndFeels.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LookAndFeels valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • setLookAndFeel

        public static LookAndFeels setLookAndFeel​(@NonNull
                                                  @NonNull LookAndFeels lookAndFeels,
                                                  @NonNull
                                                  @NonNull java.awt.Component component)
                                           throws java.lang.ClassNotFoundException,
                                                  java.lang.InstantiationException,
                                                  java.lang.IllegalAccessException,
                                                  javax.swing.UnsupportedLookAndFeelException
        Sets the given LookAndFeels to the given Component and returns given LookAndFeels
        Parameters:
        lookAndFeels - the look and feels
        component - the component
        Returns:
        the look and feels
        Throws:
        java.lang.ClassNotFoundException - the class not found exception
        java.lang.InstantiationException - the instantiation exception
        java.lang.IllegalAccessException - the illegal access exception
        javax.swing.UnsupportedLookAndFeelException - the unsupported look and feel exception