fixes to make closing of applets perhaps behave better

This commit is contained in:
benfry
2003-07-30 00:27:08 +00:00
parent 1c5538c3c5
commit cc3f11190a
2 changed files with 1 additions and 19 deletions
+1 -9
View File
@@ -805,16 +805,8 @@ afterwards, some of these steps need a cleanup function
}
}
public void doStop() {
/*
if (presenting) {
presenting = false; // to avoid endless recursion
doClose();
//presentationWindow.hide();
return;
}
*/
public void doStop() {
if (pdeRuntime != null) pdeRuntime.stop();
if (watcher != null) watcher.stop();
//System.out.println("stop2");
-10
View File
@@ -105,13 +105,6 @@ public class PdeRuntime implements PdeMessageConsumer {
}
}
});
/*
window.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
System.out.println(e);
window.toFront();
}});
*/
} else {
window = new Frame(editor.sketchName); // gonna use ugly windows instead
@@ -123,9 +116,6 @@ public class PdeRuntime implements PdeMessageConsumer {
public void windowClosing(WindowEvent e) {
stop();
editor.doClose();
//new DelayedClose(editor);
//editor.doClose();
//editor.doStop();
}
});
}