/*
 * StickFrame.java    2.0 97/06/26
 * Copyright (c) 1997, B. F. Caviness
 *
 * This software may be copied/modified for any non-commercial educational use.
 */


import java.awt.*;		// awt = abstract window toolbox

/**
 * A driver class for the component <code>class StickCanvas</code> and its
 * methods.
 */

public class StickFrame extends Frame
{

   // Instance variable
   StickCanvas stickCanvas = new StickCanvas();	// Invoke the default constructor
						// for the canvas
   public StickFrame( String title )	// Constructor
   {
      super( title );			// Set title of frame
      System.out.println( "StickFrame.StickFrame:" );
      add( "Center",stickCanvas );	// Add canvas to center of frame
      setSize( 300,350 );		// Set frame size (in pixels)
      show();				// Display the frame on the screen
   }					// show() calls stickCanvas.paint()?

    public static void main( String arg[] )
    {
       System.out.println( "StickFrame.main:" );
       new StickFrame( "Stick Figure Display Window" );
    }
}
