package lookandfeel;

import java.awt.*;
import java.io.*;
import javax.swing.*;
import javax.swing.border.*;

import gui.*;

/**
 * An example that illustrates the use of a
 * custom look and feel
 *
 * @version 1.0
 * @author  Prof. David Bernstein, James Madison University
 */
public class JMULAFdemo
{

    /**
     * The entry point
     */
    public static void main(String[] args)
    {
	BufferedReader   in;
	CloseableFrame               f;
	Container                    contentPane;
	int                          i;
	JListEditor                  jle;
        JMULookAndFeel               laf;        
        JSlider                      slider;        
	String                       choice, systemPLAF;
	UIManager.LookAndFeelInfo[]  info;


	try {

	    f = new CloseableFrame();
	    
	    contentPane = f.getContentPane();
	    contentPane.setLayout(new BorderLayout());

            slider = new JSlider();            
	    contentPane.add(slider, BorderLayout.SOUTH);

            laf = new JMULookAndFeel();
            
	    UIManager.setLookAndFeel(laf);
	    SwingUtilities.updateComponentTreeUI(f);

	    
	    f.setSize(400,300);
	    f.setVisible(true);

	} catch (UnsupportedLookAndFeelException ie) {

	    System.out.println("Couldn't set look and feel");
	}

    }




}
