diff options
author | Andrew Su <[email protected]> | 2011-01-17 13:44:31 -0500 |
---|---|---|
committer | Andrew Su <[email protected]> | 2011-01-17 13:44:31 -0500 |
commit | e9f1f6b9df10ddcb59335321329fdb5ef13cf8e9 (patch) | |
tree | 0c4f186cf0ca1773ece7684e9d32592d258559c6 /netx/net/sourceforge/jnlp/NetxPanel.java | |
parent | c361508174a8703a002d3231068c73c2fc93b967 (diff) |
Add logging for applet exceptions.
Diffstat (limited to 'netx/net/sourceforge/jnlp/NetxPanel.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/NetxPanel.java | 11 |
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() { |