Examples of LookAndFeel


Examples of javax.swing.LookAndFeel

     *
     * @return <code>true</code> if the currently installed Look and feel
     *         is not <code>null</code> and supports window decorations.
     */
    public static boolean lookAndFeelSupportsWindowDecorations() {
        LookAndFeel lnf = UIManager.getLookAndFeel();
        return lnf != null && lnf.getSupportsWindowDecorations();
    }
View Full Code Here

Examples of javax.swing.LookAndFeel

            icon = getClosedIcon();
        }

        if (!tree.isEnabled()) {
            setEnabled(false);
            LookAndFeel laf = UIManager.getLookAndFeel();
            Icon disabledIcon = laf.getDisabledIcon(tree, icon);
            if (disabledIcon != null) icon = disabledIcon;
            setDisabledIcon(icon);
        } else {
            setEnabled(true);
            setIcon(icon);
View Full Code Here

Examples of javax.swing.LookAndFeel

    /**
     * Sets the parent of the passed in ActionMap to be the audio action
     * map.
     */
    static void installAudioActionMap(ActionMap map) {
        LookAndFeel laf = UIManager.getLookAndFeel();
        if (laf instanceof BasicLookAndFeel) {
            map.setParent(((BasicLookAndFeel)laf).getAudioActionMap());
        }
    }
View Full Code Here

Examples of javax.swing.LookAndFeel

     *
     * @param c JComponent to play the sound for.
     * @param actionKey Key for the sound.
     */
    static void playSound(JComponent c, Object actionKey) {
        LookAndFeel laf = UIManager.getLookAndFeel();
        if (laf instanceof BasicLookAndFeel) {
            ActionMap map = c.getActionMap();
            if (map != null) {
                Action audioAction = map.get(actionKey);
                if (audioAction != null) {
View Full Code Here

Examples of javax.swing.LookAndFeel

    /**
     * Sets the parent of the passed in ActionMap to be the audio action
     * map.
     */
    static void installAudioActionMap(ActionMap map) {
  LookAndFeel laf = UIManager.getLookAndFeel();
        if (laf instanceof BasicLookAndFeel) {
            map.setParent(((BasicLookAndFeel)laf).getAudioActionMap());
        }
    }
View Full Code Here

Examples of javax.swing.LookAndFeel

     *
     * @param c JComponent to play the sound for.
     * @param actionKey Key for the sound.
     */
    static void playSound(JComponent c, Object actionKey) {
        LookAndFeel laf = UIManager.getLookAndFeel();
        if (laf instanceof BasicLookAndFeel) {
            ActionMap map = c.getActionMap();
            if (map != null) {
                Action audioAction = map.get(actionKey);
                if (audioAction != null) {
View Full Code Here

Examples of javax.swing.LookAndFeel

    else
    {
      lafClass = Class.forName(lafClassName);
    }
    // Get the new Look and Feel object.
    final LookAndFeel laf = (LookAndFeel) lafClass.newInstance();
    // If a different LAF to the current one has been requested then
    // change to the requested LAF.
    LookAndFeel curLaf = UIManager.getLookAndFeel();
    s_log.debug(curLaf);
    if (force || curLaf == null || !curLaf.getName().equals(laf.getName()))
    {
      ILookAndFeelController lafCont = getLookAndFeelController(lafClassName);
      lafCont.aboutToBeInstalled(this, laf);

      // Set Look and Feel.  If this is the Substance placeholder, skip it as it is not a real
View Full Code Here

Examples of javax.swing.LookAndFeel

      {
        String className = it.next();
        Class<?> lafClass = Class.forName(className, false, _lafClassLoader);
        try
        {
          LookAndFeel laf = (LookAndFeel) lafClass.newInstance();
          if (laf.isSupportedLookAndFeel())
          {
            LookAndFeelInfo info = new LookAndFeelInfo(laf.getName(), lafClass.getName());
            UIManager.installLookAndFeel(info);
          }
        }
        catch (Throwable th)
        {
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel

        }
      }

      if (manager == null)
      {
        LookAndFeel laf = getLookAndFeel();
        manager = _manager = laf.getRendererManager(_facet);
      }
    }

    return manager;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel

    if (laf instanceof LafIconProviderProvider)
      return ((LafIconProviderProvider)laf).getLafIconProvider();
    else if (laf instanceof LookAndFeelExtension)
    {
      // Check the base LAF
      LookAndFeel baseLAF = ((LookAndFeelExtension)laf).getBaseLookAndFeel();
      return getIconProvider(baseLAF);
    }

    return null;
  }
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.