package com.mindprod.example;

import javax.swing.UIManager;

/**
 * example use of Swing Look and Feel selection. Display all installed Look and Feels.
 * <p/>
 * composed with IntelliJ IDEA
 *
 * @author Roedy Green, Canadian Mind Products
 * @version 1.0
 */
public final class TestInstalledLookAndFeels
    {
    // --------------------------- main() method ---------------------------

    /**
     * TEST harness to demonstrate how you discover the installed look and feels.
     *
     * @param args not used
     */
    public static void main( String[] args )
        {
        // display all installed L&Fs
        for ( UIManager.LookAndFeelInfo info : UIManager
                .getInstalledLookAndFeels() )
            {
            System.out
                    .println( "name: "
                              + info.getName()
                              + " className: "
                              + info.getClassName() );

            // if wanted to use the L&F would do:
            // UIManager.setLookAndFeel ( info.getClassName() );
            }
        }
    }