diff --git a/processing/app/BAppletViewer.java b/processing/app/BAppletViewer.java deleted file mode 100644 index 78a8cbc5b..000000000 --- a/processing/app/BAppletViewer.java +++ /dev/null @@ -1,73 +0,0 @@ -import java.awt.*; -import java.io.*; -import java.net.*; - - -public class BAppletViewer implements Runnable { - BApplet applet; - Thread killer; - //int portnum; - //Socket umbilical; - //OutputStream umbilicalOut; - //InputStream umbilicalIn; - - - static public void main(String args[]) { - try { - //portnum = Integer.parseInt(args[1]); - //umbilical = new Socket("localhost", portnum); - - new BAppletViewer(args[0], - Integer.parseInt(args[1]), - Integer.parseInt(args[2])); - } catch (Exception e) { - e.printStackTrace(); - } - } - - - public BAppletViewer(String name, int x1, int y1) throws Exception { - Class c = Class.forName(name); - applet = (BApplet) c.newInstance(); - applet.init(); - applet.start(); - - Window window = new Window(new Frame()); - window.setBounds(x1 - applet.width, y1, applet.width, applet.height); - window.add(applet); - applet.setBounds(0, 0, applet.width, applet.height); - window.show(); - applet.requestFocus(); // necessary for key events - - //umbilical = new Socket("localhost", portnum); - //umbilicalOut = umbilical.getOutputStream(); - //umbilicalIn = umbilical.getInputStream(); - - killer = new Thread(this); - killer.start(); - } - - - File deathNotice = new File("die"); - - public void run() { - //while (Thread.currentThread() == killer) { - while (true) { - if (deathNotice.exists()) { - deathNotice.delete(); - System.exit(0); - } - //try { - //System.out.println("testing"); - //umbilicalOut.write(100); - //umbilicalIn.read(); - //} catch (Exception e) { - //e.printStackTrace(); - //System.exit(0); - //} - try { - Thread.sleep(100); - } catch (InterruptedException e) { } - } - } -} diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index 056b44306..ee4767d99 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -158,7 +158,9 @@ public class PdeEditor extends Panel { } } catch (Exception e) { - e.printStackTrace(); + // this exception doesn't matter, it's just the normal course of things + // the app reaches here when no sketch.properties file exists + //e.printStackTrace(); // even if folder for 'default' user doesn't exist, or // sketchbook itself is missing, mkdirs() will make it happy diff --git a/processing/app/make.bat b/processing/app/make.bat index d19c5433c..e5b493ed4 100755 --- a/processing/app/make.bat +++ b/processing/app/make.bat @@ -38,7 +38,7 @@ REM set CLASSPATH=lib\kjc.jar;lib\oro.jar;java\lib\rt.jar;java\lib\ext\comm.jar; set CLASSPATH=classes;lib\kjc.jar;lib\oro.jar;java\lib\rt.jar;java\lib\ext\comm.jar REM cd .. -perl buzz.pl "jikes +D -nowarn -d application\classes" -dJDK13 *.java kjc\*.java +perl buzz.pl "jikes +D -nowarn -d classes" -dJDK13 *.java kjc\*.java REM cd application REM rm -f lib/version @@ -46,7 +46,6 @@ REM rm -f lib/version rem -- make pde.jar cd classes rm -f ..\lib\pde.jar -REM zip -0q ..\lib\pde.jar *.class *.gif zip -0q ..\lib\pde.jar *.class cd ..