/*
 * [TestInstalledLookAndFeels.java]
 *
 * Summary: example use of Swing Look and Feel selection. Display all installed Look and Feels.
 *
 * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com
 *
 * Licence: This software may be copied and used freely for any purpose but military.
 *          http://mindprod.com/contact/nonmil.html
 *
 * Requires: JDK 1.8+
 *
 * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/
 *
 * Version History:
 *  1.0 2009-01-01 initial version
 */
package com.mindprod.example;

import javax.swing.UIManager;

import static java.lang.System.*;

/**
 * example use of Swing Look and Feel selection. Display all installed Look and Feels.
 *
 * @author Roedy Green, Canadian Mind Products
 * @version 1.0 2009-01-01 initial version
 * @since 2009-01-01
 */
public final class TestInstalledLookAndFeels
    {
    /**
     * 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() )
            {
            out.println( "name: "
                         + info.getName()
                         + " className: "
                         + info.getClassName() );
            // if wanted to use the L&F would do:
            // UIManager.setLookAndFeel ( info.getClassName() );
            }
        }
    }