mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
added a note about threading and applet methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user