Opening a new window and closing the main one

edited September 2015 in Library Questions

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

Sign In or Register to comment.