//mdm April 2001 import java.awt.*; //import the awt package import javax.swing.JFrame; //import the JFrame class from the swing package public class CannonGame extends JFrame{ public static void main (String [] args){ CannonGame world = new CannonGame(); CannonGamePanel panel = new CannonGamePanel(Integer.valueOf(args[0])); world.getContentPane().add(panel); world.show(); panel.fire(); while (true) panel.run(); } public CannonGame() { //constructor for new window //resize frame, initialize title setSize(CannonGamePanel.PanelWidth, CannonGamePanel.PanelHeight+35); setTitle("Cannon Game"); } }