diff options
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/AppletInstance.java')
-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) { |