The method of "exit(int)" from "System" class is used to close the program .
In the program that i wrote there's a window that opens with "Frame" class, in this window there's a button by pushing which another window is supposed to open.
Now I have trouble making my program close the second window without closing the first one. I tried to use exit(int) but it closes the whole thing. Does anyone have any idea how I should do it?
I'd appreciate it if the solution you give is in 'system' class.
(gem) Lyst til et hurtigt spil der garanteret ikke tager mere end to timer? Start et nyt spil af eget valg, vælg tiden for spillet og sæt Tiden til 0 dage / 1 time, Bonus til 0 dage / 0 timer og grænsen til 0 dage / 1 time. (TeamBundy) (vis alle tips)