import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.GridLayout; public class frame_c { public static void main( String args[] ) { Frame frame = new Frame( "Raket och Figur" ); // title frame.setLayout( new GridLayout( // LayoutManager 2, // rows 1 ) ); // cols rocket_c rocket_panel = new rocket_c(); frame.add( rocket_panel ); // Component tomte_c tomte_panel = new tomte_c(); frame.add( tomte_panel ); // Component frame.setSize( 500, // width 500 ); // height frame.setResizable( false ); // boolean resizable frame.addWindowListener( new WindowAdapter() // WindowListener { public void windowClosing( WindowEvent wev ) { System.exit( 0 ); } // windowClosing } // WindowAdapter ); frame.show(); tomte_panel.start(); rocket_panel.start(); } // main } // frame_c