I am in urgent.If you can help me,it will be great.
I am new to Java swing and relatively new to processing. I have installed
proclipsing in to eclipse.
I have a class Trial that extends PApplet and has setup() and draw() methods. And I simply run the file and it creates an applet based on the setup and draw.
What I want to do is to call the class Trial from other java class .Based on the logic in the other java class the class,I decide whether to use Trial or not.
Also I want to pass parameters to the draw method,which would draw certain figure based on the parameter values.