import javax.swing.JFrame;


/**
 * Uses the Triangle class to draw a picture.
 *
 * @author Curt Clifton.
 *         Created Sep 28, 2009.
 */
public class TriangleViewer {

	/**
	 * The width of the frame.
	 */
	public static final int WIDTH = 800;
	/**
	 * The height of the frame.
	 */
	public static final int HEIGHT = 600;

	/**
	 * Starts the Polygon viewer.
	 *
	 * @param args
	 */
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		
		frame.setSize(WIDTH, HEIGHT);
		frame.setTitle("Triangles and Friends");
		
		frame.add(new TriangleComponent());
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	}

}
