// DrawPanelTest.java: Fig 4.20 from Deitel & Deitel, Java: How to Program
// Application to display a DrawPanel
//
// Modified for CSC 121 - Spring 2005 
// Berry College - Nadeem Abdul Hamid

import javax.swing.JFrame;

public class DrawPanelTest {
    
    public static void main( String args[] ) {

        // create a panel that contains our drawing
        DrawPanel panel = new DrawPanel();

        // create a new frame to hold the panel
        JFrame application = new JFrame();
       
        // set the frame to exit when it is closed
        application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );

        application.getContentPane().add( panel ); // add panel to the frame
        application.setSize( 250, 250 ); // set the size of the frame
        application.setVisible( true );  // make the frame visible

    } // end method main

} // end class DrawPanelTest


