Examples of UIDefaults


Examples of javax.swing.UIDefaults

    /**
     * Adds look and feel constants for Help components into UIDefaults table.
     */
    static void installLookAndFeelDefaults() {
        LookAndFeel lnf = UIManager.getLookAndFeel();
        UIDefaults table = UIManager.getLookAndFeelDefaults();

  debug("installLookAndFeelDefaults - " + lnf);

        if ((lnf != null) && (table != null)) {
      if (lnf.getID().equals("Motif")) {
    installMotifDefaults(table);
      } else if (lnf.getID().equals("Windows")) {
    installWindowsDefaults(table);
      } else if (lnf.getID().equals("GTK")) {
    installGTKDefaults(table);
      } else {
    // Default
    installMetalDefaults(table);
      }
  }
  debug ("verifing UIDefaults; HelpUI=" + table.getString("HelpUI"));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.