Help with ActionListener

Not open for further replies.

Thread Starter


Joined May 25, 2010
(Taking a deep breath) well here's my question.

I'm working on a university project with Arduino UNO and Processing IDE interfaced with Java NetBeans, at this point I'm only working in NetBeans but using a lot of Processing libraries. According to a forum I read on how to interface Processing and Netbeans I read this:

Rich (BB code):
public static void main(String args[]) {
    PApplet.main(new String[] { "--present", "MyProcessingSketch" });
I noticed that there's no instance of the class as I normally see it in the main method, something like:

myClass object = new myClass();

But instead that long line of code that to be honest I'm not sure I know what it means.

So in my project I'm using actionlistener to call "MyProcessingSketch" when a button is clicked but my question is, what do I have to put in the actionlistener body to achieve that? is it something I have to change in the main method? I hope my question is not too confusing.
Not open for further replies.