FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 263 : Missing PApplet definition in processing-0098-expert\libraries\howto.txt
Last modified: 2005-12-27 16:54
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
van
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2005-12-27 16:28
From howto.txt
A Very Basic Example
package libraryexample;
public class BoringLibrary {
PApplet parent;
public BoringLibrary(PApplet parent) {
this.parent = parent;
parent.registerDispose(this);
}
public void dispose() {
// anything in here will be called automatically when
// the parent applet shuts down. for instance, this might
// shut down a thread used by this library.
}
}
This example doesn't include the import for PApplet and therefore will not
compile.
Additional Comment
#1 From fry 2005-12-27 16:54
fixed for 0100.