/** * This file provides code for the containing JFrame. * * @author John Paxton * @version 1.0 */ import javax.swing.JFrame; import java.awt.GridLayout; import java.awt.Dimension; public class MyFrame extends JFrame { /** * Class constructor. */ MyFrame () { add (new MyPanel() ); setPreferredSize(new Dimension(500,500)); // makes a 500 by 500 window pack(); setVisible( true ); } }