Java Swing Look and Feel getAvailableLookAndFeels()

Here you can find the source of getAvailableLookAndFeels()

Description

get Available Look And Feels

License

Open Source License

Declaration

public static LookAndFeelInfo[] getAvailableLookAndFeels() 

Method Source Code


//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);
    }
}

Related

  1. checkThemeLiscense(LookAndFeelInfo i)
  2. computeIsLafAqua()
  3. defaultLookAndFeel()
  4. enableLafIfAvailable(String lafName)
  5. fixLnF()
  6. getAvailableLookAndFeels()
  7. getInstalledLookAndFeels()
  8. getLAF(int lafNumber)
  9. getLafClassName(String lafName)