Help with ActionListener

Discussion in 'Embedded Systems and Microcontrollers' started by krow, Aug 24, 2011.

Thread Status:
Not open for further replies.
  1. krow

    Thread Starter Member

    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:

    Code ( (Unknown Language)):
    2. public static void main(String args[]) {
    3.     PApplet.main(new String[] { "--present", "MyProcessingSketch" });
    4.   }
    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.
  2. hgmjr

    Retired Moderator

    Jan 28, 2005
    There is already a post on this topic by the same member.

Thread Status:
Not open for further replies.