From e9f1f6b9df10ddcb59335321329fdb5ef13cf8e9 Mon Sep 17 00:00:00 2001 From: Andrew Su Date: Mon, 17 Jan 2011 13:44:31 -0500 Subject: Add logging for applet exceptions. --- netx/net/sourceforge/jnlp/NetxPanel.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'netx/net/sourceforge/jnlp/NetxPanel.java') diff --git a/netx/net/sourceforge/jnlp/NetxPanel.java b/netx/net/sourceforge/jnlp/NetxPanel.java index e049b10..2b3037a 100644 --- a/netx/net/sourceforge/jnlp/NetxPanel.java +++ b/netx/net/sourceforge/jnlp/NetxPanel.java @@ -22,6 +22,7 @@ package net.sourceforge.jnlp; +import net.sourceforge.jnlp.AppletLog; import net.sourceforge.jnlp.runtime.AppThreadGroup; import net.sourceforge.jnlp.runtime.AppletInstance; import net.sourceforge.jnlp.runtime.JNLPRuntime; @@ -68,6 +69,16 @@ public class NetxPanel extends AppletViewerPanel { super.run(); } + @Override + protected void showAppletException(Throwable t) { + /* + * Log any exceptions thrown while loading, initializing, starting, + * and stopping the applet. + */ + AppletLog.log(t); + super.showAppletException(t); + } + //Overriding to use Netx classloader. You might need to relax visibility //in sun.applet.AppletPanel for runLoader(). protected void runLoader() { -- cgit v1.2.3