We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Outside of the Processing IDE, how do you set up multiple classes that attempt to display all on a single PApplet? Must they all extend PApplet and have a main method like PApplet.main("abc")?
Answers
Only the
class
w/ the settings(), setup() & draw() methods needs toextends
PApplet. L-)The others request a working PApplet reference as 1 of their constructor's parameter(s): :-B
"DisplaysOnCanvas.java":
Slam dunk answer thank you!
Sorry rookie here; how are you creating the 'pa' PApplet in the main class?
The idea is that when you instantiate a DisplaysOnCanvas object, you provide a reference to your current PApplet.... and you do that using the constructor of your class. Here below is what it will look like in Processing, which should be similar to what you are trying to implement in netbeams.
Kf