Here you can find the source of getNimbusLAF()
private static String getNimbusLAF()
//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; } }