aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
index 8e89530..17e9d14 100644
--- a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
+++ b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
@@ -16,6 +16,7 @@
package net.sourceforge.jnlp.runtime;
+import net.sourceforge.jnlp.util.logging.OutputController;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
@@ -90,7 +91,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
WindowListener closer = new WindowAdapter() {
public void windowClosing(WindowEvent event) {
appletInstance.destroy();
- System.exit(0);
+ JNLPRuntime.exit(0);
}
};
frame.addWindowListener(closer);
@@ -194,8 +195,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
}
} catch (Exception ex) {
- if (JNLPRuntime.isDebug())
- ex.printStackTrace();
+ OutputController.getLogger().log(ex);
// should also kill the applet?
}
@@ -221,10 +221,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
*/
public void setApplet(Applet applet) {
if (this.applet != null) {
- if (JNLPRuntime.isDebug()) {
- Exception ex = new IllegalStateException("Applet can only be set once.");
- ex.printStackTrace();
- }
+ OutputController.getLogger().log(new IllegalStateException("Applet can only be set once."));
return;
}
this.applet = applet;