We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey peeps,
I'm trying to make a user interface with controlp5. The idea is that when the user presses a button, the main sketch with the controls closes and a new window opens with the main show. I know how to open a new applet using JFrame, but I can't seem to close the original window without the second one also closing (been using exit() so far).
Any ideas?!
Cheers!!!
Answers
Be aware that any solutions relying on Frame or JFrame are incompatible w/ Processing 3!
Seek out 1s which rely on main() or runSketch() instead:
http://forum.processing.org/two/discussions/tagged?Tag=#multiplewindows
http://forum.processing.org/two/discussions/tagged?Tag=papplet.runsketch()