/* * Main.java * * Created on July 24, 2006, 10:24 AM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package javaapplication4; /** * * @author webster */ import java.util.Scanner; import javax.swing.*; // For JFrame and JPanel import java.awt.*; // For Color, Container, and GridLayout public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { JFrame theGUI = new JFrame(); theGUI.setTitle("GUI Program"); theGUI.setSize(300, 200); theGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); ColorPanel panel = new ColorPanel(Color.white); Container pane = theGUI.getContentPane(); pane.add(panel); theGUI.setVisible(true); } }