1
2
3
4
5
6
7
8
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 }