Here you can find the source of getAvailableLookAndFeels()
public static LookAndFeelInfo[] getAvailableLookAndFeels()
//package com.java2s; /*//from w w w . jav a 2 s.c o m * Copyright ? Mihai Borobocea 2009, 2010 * * This file is part of SimpleSwing. * * SimpleSwing is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * SimpleSwing 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with SimpleSwing. If not, see <http://www.gnu.org/licenses/>. * */ import java.util.Arrays; import javax.swing.UIManager; import javax.swing.UIManager.LookAndFeelInfo; public class Main { private static final LookAndFeelInfo[] availableLookAndFeels = UIManager.getInstalledLookAndFeels(); public static LookAndFeelInfo[] getAvailableLookAndFeels() { return Arrays.copyOf(availableLookAndFeels, availableLookAndFeels.length); } }