Class FlatPropertiesLaf

  • All Implemented Interfaces:
    java.io.Serializable

    public class FlatPropertiesLaf
    extends FlatLaf
    A Flat LaF that is able to load UI defaults from properties passed to the constructor.

    Specify the base theme in the properties with @baseTheme=<baseTheme>. Allowed values for <baseTheme> are light (the default), dark, intellij or darcula.

    The properties are applied after loading the base theme and may overwrite base properties. All features of FlatLaf properties files are available.

    See Also:
    Serialized Form
    • Constructor Detail

      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.io.File propertiesFile)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.io.InputStream in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • FlatPropertiesLaf

        public FlatPropertiesLaf​(java.lang.String name,
                                 java.util.Properties properties)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in class javax.swing.LookAndFeel
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class javax.swing.LookAndFeel
      • isDark

        public boolean isDark()
        Specified by:
        isDark in class FlatLaf