I'm writing a little application and for user interface purposes, I'm currently writing my code inside NetBeans, so I can directly design my JFrames and call them from the PApplet and it's cool.
My goal is to make one PApplet with everything I need inside it and call it with the static main like that :
PApplet.main(new String[]{"myPAppletClass"});
In fact it worked pretty good until I tried to add a "new" command which should launch another instance of the PApplet (like in a MDI application). But when the user closes any PApplet launched, the application completely exits !
How can I launch independant instances of the PApplet so that if one is closed the Java app goes on running with other ones ?