How can processing PApplet receive arguments?

edited May 2014 in How To...

I'm trying to make a game, and i deal with Registry, and Authentication in a JFrame and then call the PApplet from that Frame after authentication, but i don't know how to send the data to the processing part of the application.

Appreciate any help. Thanks

Tagged:

Answers

  • I had a similar question, and the solution is simple. The generic java code:

    public static void main(String[] args) {...}
    

    applies to sketches. So the arguments passed at startup are in the variable args (sorry if the formatting is off, I'm learning the syntax)

Sign In or Register to comment.