aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/NetxPanel.java
diff options
context:
space:
mode:
authorAndrew Su <[email protected]>2011-01-17 13:44:31 -0500
committerAndrew Su <[email protected]>2011-01-17 13:44:31 -0500
commite9f1f6b9df10ddcb59335321329fdb5ef13cf8e9 (patch)
tree0c4f186cf0ca1773ece7684e9d32592d258559c6 /netx/net/sourceforge/jnlp/NetxPanel.java
parentc361508174a8703a002d3231068c73c2fc93b967 (diff)
Add logging for applet exceptions.
Diffstat (limited to 'netx/net/sourceforge/jnlp/NetxPanel.java')
-rw-r--r--netx/net/sourceforge/jnlp/NetxPanel.java11
1 files changed, 11 insertions, 0 deletions
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() {