Java Swing Look and Feel isWebLookAndFeelInstalled()

Here you can find the source of isWebLookAndFeelInstalled()

Description

is Web Look And Feel Installed

License

BSD License

Declaration

public static final boolean isWebLookAndFeelInstalled() 

Method Source Code

//package com.java2s;
/*/*from w  w  w.  j  a v a  2s  .  com*/
 * 03/30/2013
 *
 * WebLookAndFeelUtils.java - Utility methods for applications looking to
 * support WebLookAndFeel.
 * Copyright (C) 2003 Robert Futrell
 * http://fifesoft.com/rtext
 * Licensed under a modified BSD license.
 * See the included license file for details.
 */

import javax.swing.LookAndFeel;
import javax.swing.UIManager;

public class Main {
    private static final String LAF_CLASS_NAME = "com.alee.laf.WebLookAndFeel";

    public static final boolean isWebLookAndFeelInstalled() {
        LookAndFeel laf = UIManager.getLookAndFeel();
        return isWebLookAndFeel(laf.getClass().getName());
    }

    public static final boolean isWebLookAndFeel(String laf) {
        return laf.equals(LAF_CLASS_NAME);
    }
}

Related

  1. isSubstanceInstalled()
  2. isSynth()
  3. isSystemLookAndFeel()
  4. isUnderIntelliJLaF()
  5. isUnderWindowsClassicLookAndFeel()
  6. isWindows()
  7. isWindowsClassicLookAndFeel()
  8. isWindowsClassicLookAndFeel()
  9. isWindowsLaF()