import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/**
 * Swing app to draw colored, shaded rectangle.
 * In preparation for Gouraud shading of triangle pair.
 * @author Bob Futrelle
 * @version 0.1 1/20/04 (from "SwingApplication orig of 7/6/02)
 */
public class ColorShadeDriver {

    public static void main(String[] args) {
 
        //Create the top-level container and add contents to it.
        JFrame frame = new JFrame("Color shaded rectangle");
        Shader shading = new Shader();
        frame.getContentPane().add(shading, BorderLayout.CENTER);

        //Finish setting up the frame, and show it.
		//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    	frame.pack();
		frame.setSize(400,200);
    	frame.setVisible(true);
    }
} // class ColorShadeDriver

