I'm new to Processing and just came over from Java.
How can you extend a PGraphics object, I'm not sure what to put in the constructor.
The Javadocs said to write "this (w, h)" for a subclass, but when I tried it Processing told me the correct constructor didn't exist. A similar error came when I tried "super (w, h)".
Here's what I want:
class Panel extends PGraphics{
//Variables
public Panel(arg1, arg2) {
super(whatever); // I want to know what whatever is or what to put instead of this line.
//Rest of constructor
}
// Other methods
}
How can I do this? Java allows you to extend things like JFrames, and it has often been very useful to be able to combine drawing with updating.