We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I write a program in which I have to open two windows one by one(first at a time). Can anybody guide me on how which command will help me to close first window?
void setup() {
size(700, 400);
// I want to exit this window and open another one
square();
}
void square() {
size(400, 400,P3D);
}
Answers
frame.setVisible(false);
After closing first window I want that 2nd window should stay on screen. how I make 2nd window stay on screen
Do you even know how to make a 2nd window? :-?
not specifically, I just tried from traditional manner
There are examples on this forum for creating multiple windows, search from the main Processing website rather than the forum as you will get better results.
Alternatively you could use one of the GUI libraries, both G4P and controlP5 support multiple windows.