Java Swing Look and Feel getNimbusLAF()

Here you can find the source of getNimbusLAF()

Description

Returns the Nimbus L&F, or null if not found.

License

Open Source License

Declaration

private static String getNimbusLAF() 

Method Source Code


//package com.java2s;
/*//from  w ww  .ja va2s. com
 *    Geotoolkit.org - An Open Source Java GIS Toolkit
 *    http://www.geotoolkit.org
 *
 *    (C) 2001-2012, Open Source Geospatial Foundation (OSGeo)
 *    (C) 2009-2012, Geomatys
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */

import javax.swing.UIManager;

public class Main {
    /**
     * Returns the Nimbus L&F, or {@code null} if not found.
     */
    private static String getNimbusLAF() {
        for (final UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
            if (info.getName().equalsIgnoreCase("Nimbus")) {
                return info.getClassName();
            }
        }
        return null;
    }
}

Related

  1. getLafClassName(String lafName)
  2. getLookAndFeel(final String displayName)
  3. getLookAndFeel(String name)
  4. getLookAndFeelInfo()
  5. getLookAndFeelToSave()
  6. getSortedInstalledLAFInfos()
  7. getSysDefLookandFeel()
  8. getSystemLAF()
  9. initLookAndFeel()