From 8d82edfe8146daa3dde2fea7d9d2b6d55680e97a Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 12 Feb 2008 15:17:00 +0000 Subject: [PATCH] cooja applet files --- tools/cooja/config/cooja.html | 12 +++++++++++ tools/cooja/config/cooja.policy | 3 +++ .../cooja/java/se/sics/cooja/CoojaApplet.java | 20 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 tools/cooja/config/cooja.html create mode 100644 tools/cooja/config/cooja.policy create mode 100644 tools/cooja/java/se/sics/cooja/CoojaApplet.java diff --git a/tools/cooja/config/cooja.html b/tools/cooja/config/cooja.html new file mode 100644 index 000000000..944b411c0 --- /dev/null +++ b/tools/cooja/config/cooja.html @@ -0,0 +1,12 @@ + + The COOJA Simulator (applet) + + + + + + + + diff --git a/tools/cooja/config/cooja.policy b/tools/cooja/config/cooja.policy new file mode 100644 index 000000000..53a9d407d --- /dev/null +++ b/tools/cooja/config/cooja.policy @@ -0,0 +1,3 @@ +grant { +permission java.security.AllPermission; +}; diff --git a/tools/cooja/java/se/sics/cooja/CoojaApplet.java b/tools/cooja/java/se/sics/cooja/CoojaApplet.java new file mode 100644 index 000000000..fcc3f8c01 --- /dev/null +++ b/tools/cooja/java/se/sics/cooja/CoojaApplet.java @@ -0,0 +1,20 @@ +package se.sics.cooja; + +import javax.swing.*; + +public class CoojaApplet extends JApplet { + + public static CoojaApplet applet = null; + + public void init() + { + applet = this; + } + + public void start(){ + GUI.main(new String[] { "-applet" }); + } + + public void stop(){ + } +}