View Javadoc

1   /*
2    * @(#) DSOLApplet.java Nov 5, 2003
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.dsol.gui.applets;
11  
12  import javax.swing.JApplet;
13  
14  import nl.tudelft.simulation.dsol.gui.DSOLApplication;
15  
16  /***
17   * @author peter
18   */
19  public class DSOLApplet extends JApplet
20  {
21  	/***
22  	 * constructs a new DSOLApplet
23  	 */
24  	public DSOLApplet()
25  	{
26  		super();
27  		System.setSecurityManager(new DSOLAppletSecurityManager());
28  	}
29  
30  	/***
31  	 * @see java.applet.Applet#init()
32  	 */
33  	public void init()
34  	{
35  		super.init();
36  		new DSOLApplication();
37  	}
38  
39  	/***
40  	 * @see java.lang.Object#finalize()
41  	 */
42  	protected void finalize() throws Throwable
43  	{
44  		this.stop();
45  		super.finalize();
46  	}
47  }