using swingworker to fix the hanging bug (also in opengl)

This commit is contained in:
benfry
2005-02-05 21:55:14 +00:00
parent 00f8d3821c
commit 6c830abc69
5 changed files with 246 additions and 65 deletions

View File

@@ -123,6 +123,7 @@ public class PdeRuntime implements PdeMessageConsumer {
processInput = new SystemOutSiphon(process.getInputStream());
processError = new PdeMessageSiphon(process.getErrorStream(), this);
processOutput = process.getOutputStream();
//processOutput.write(' ');
//processOutput.flush();
@@ -375,7 +376,7 @@ public class PdeRuntime implements PdeMessageConsumer {
// this is PApplet sending a message (via System.out.println)
// that signals that the applet has been quit.
if (s.indexOf(PApplet.EXTERNAL_QUIT) == 0) {
System.out.println("external: quit");
//System.out.println("external: quit");
editor.doClose();
return;
}
@@ -388,7 +389,7 @@ public class PdeRuntime implements PdeMessageConsumer {
int left = Integer.parseInt(nums.substring(0, space));
int top = Integer.parseInt(nums.substring(space + 1));
editor.appletLocation = new Point(left, top);
System.out.println("external: move to " + left + " " + top);
//System.out.println("external: move to " + left + " " + top);
return;
}