Java Swing Look and Feel isNimbusLookAndFeel()

Here you can find the source of isNimbusLookAndFeel()

Description

Returns whether the Nimbus Look and Feel is installed.

License

BSD License

Return

Whether the current LAF is Nimbus.

Declaration

private static final boolean isNimbusLookAndFeel() 

Method Source Code

//package com.java2s;
/*/*from ww  w.  j av  a2 s .co m*/
 * 08/13/2009
 *
 * TipUtil.java - Utility methods for homemade tool tips.
 * 
 * This library is distributed under a modified BSD license.  See the included
 * RSyntaxTextArea.License.txt file for details.
 */

import javax.swing.UIManager;

public class Main {
    /**
     * Returns whether the Nimbus Look and Feel is installed.
     *
     * @return Whether the current LAF is Nimbus.
     */
    private static final boolean isNimbusLookAndFeel() {
        return UIManager.getLookAndFeel().getName().equals("Nimbus");
    }
}

Related

  1. isNimbus()
  2. isNimbus()
  3. isNimbus()
  4. isNimbusGTKTheme()
  5. isNimbusLookAndFeel()
  6. isPlasticLaf()
  7. isQuaqua()
  8. isSubstanceInstalled()
  9. isSynth()