I would like to have a loop that creates a JFrame, sets it visible and waits until that JFrame is disposed of before creating another. Is this possible? A solution would be greatly appreciated I can't seem to figure this one out.
ex:
for(int i=0; i<5; i++){
JFrame foo = new Jframe();
foo.setVisible(true);
while(foo.isVisible){
wait();
}
}