diff options
author | Danesh Dadachanji <[email protected]> | 2011-12-19 15:00:03 -0500 |
---|---|---|
committer | Danesh Dadachanji <[email protected]> | 2011-12-19 15:00:03 -0500 |
commit | d6072b8d9141bdcc3e4be09671780054bad89432 (patch) | |
tree | 86cac0cea21e14d5fae9e28592079ebb065deef0 /netx/net/sourceforge/jnlp/runtime | |
parent | 5c3817e37549b9c7fed1ec46a3956f7bdbc3c9d3 (diff) |
BasicService code does not work when placed in the applet constructor.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/AppletInstance.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/AppletInstance.java b/netx/net/sourceforge/jnlp/runtime/AppletInstance.java index 78ab4f6..1f08817 100644 --- a/netx/net/sourceforge/jnlp/runtime/AppletInstance.java +++ b/netx/net/sourceforge/jnlp/runtime/AppletInstance.java @@ -52,6 +52,20 @@ public class AppletInstance extends ApplicationInstance { } /** + * Set the applet of this launched application; can only be called once. + */ + public void setApplet(Applet applet) { + if (this.applet != null) { + if (JNLPRuntime.isDebug()) { + Exception ex = new IllegalStateException("Applet can only be set once."); + ex.printStackTrace(); + } + return; + } + this.applet = applet; + } + + /** * */ public AppletInstance(JNLPFile file, ThreadGroup group, ClassLoader loader, Applet applet, Container cont) { |