diff --git a/processing/core/PApplet.java b/processing/core/PApplet.java index 9c361c966..34a46f7dc 100644 --- a/processing/core/PApplet.java +++ b/processing/core/PApplet.java @@ -197,7 +197,6 @@ public class PApplet extends Applet // the thread on, instead of doing it inside paint() public void stop() { if (thread != null) { - //thread.stop(); thread = null; } @@ -223,6 +222,11 @@ public class PApplet extends Applet } + // public void destroy() is another one that gets called as the + // applet viewer is shutting down the applet. stop() is called + // first, and then destroy() to really get rid of things. + + public Dimension getPreferredSize() { return new Dimension(width, height); }