/*
 * SpaceWars
 * Burton Rosenberg
 * May 2004
 */
 
 import java.awt.* ;
 import javax.swing.* ;
 
 public class SpaceWars extends JApplet {
         
         private static final String FRAME_TITLE = "SpaceWars" ;
         private static final int WIDTH = 400 ;
         private static final int HEIGHT = 400 ;
         
         // entry point for SpaceWars: the application
         public static void main( String [] args ) {
                 JFrame jf = new JFrame(FRAME_TITLE) ;
                 makeGui(jf.getContentPane()) ;
                 jf.setSize( WIDTH, HEIGHT ) ;
                 // jf.pack() ;  // setSize and this don't mix.
                 jf.setVisible(true) ;
         }
         
         // override init for JApplet
         public void init() {
                 makeGui( this.getContentPane() ) ;
         }
         
         private static void makeGui(Container c) {
                 TheModel tm = new TheModel() ;
                 c.add( new TheController(tm), BorderLayout.SOUTH ) ;
                 c.add( new TheView(tm), BorderLayout.CENTER ) ;
         }
 }
 
