Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;
import java.util.Vector;

import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;

public class Main {
    /**
     * Get a list of all look and feels avaliable
     *  
     * @return
     */
    public static List<String> getAllLookAndFeels() {
        List<String> lnf = new Vector<>();
        for (LookAndFeelInfo l : UIManager.getInstalledLookAndFeels()) {
            lnf.add(l.getName());
        }
        return lnf;
    }
}