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(); } }
Uhm, use a JDialog, in modal mode?
Thank you, I feel a little dumb now I completely forgot JDialog existed... That worked perfectly.