Package moa.gui

Class LookAndFeel


  • public class LookAndFeel
    extends Object
    Manages setting the look and feel. Uses the KEY_LOOKANDFEEL property from GUIDefaults to determine what Look'n'Feel to use. See examples in the GUI.props file for more details.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • LookAndFeel

        public LookAndFeel()
    • Method Detail

      • installJavaLookAndFeel

        protected static boolean installJavaLookAndFeel​(String lnf)
        Attempts to install the specified Java Look'n'Feel.
        Parameters:
        lnf - the look'n'feel classname
        Returns:
        true if successfully installed
      • attemptInstallJavaLookAndFeel

        protected static boolean attemptInstallJavaLookAndFeel​(String lnf)
        Attempts to install the specified Look'n'Feel, but falls back on cross-platform look if it fails.
        Parameters:
        lnf - the look'n'feel classname
        Returns:
        true if successful
      • install

        public static void install()
        Installs the look and feel.