• Main Page
  • Related Pages
  • Classes
  • Files
  • File List

RunAsApplet.java

Go to the documentation of this file.
00001 
00002 import java.awt.BorderLayout;
00003 import javax.swing.JApplet;
00004 
00005 
00006 /**
00007  *  Runs instance of the <code>JPWorld</code> component inside the applet.
00008  *  
00009  *  @author Mikica B Kocic
00010  */
00011 public class RunAsApplet extends JApplet
00012 {
00013     /**
00014      *  Implements java.io.Serializable interface
00015      */
00016     private static final long serialVersionUID = 6183165032705642517L;
00017 
00018     /**
00019      *  Main component is instance of the <code>JPWorld</code>.
00020      */
00021     private JPWorld wopComponent = new JPWorld ();
00022 
00023     /**
00024      *  Adds main component <code>JPWorld</code> to the content pane.
00025      */
00026     @Override
00027     public void init () 
00028     {
00029         super.init ();
00030         
00031         setSize( 1024, 600 );
00032         getContentPane ().add( wopComponent, BorderLayout.CENTER );
00033         validate ();
00034         
00035         /* Start T1 & T2 tests delayed for 1 sec
00036          */
00037         wopComponent.startTests( 1f /*sec delay*/ );
00038     }
00039 }

Generated on Thu Dec 16 2010 12:28:54 for Multi-threaded World of Particles by  doxygen 1.7.2