- Jun 22, 2005
- 1,687
- 0
- 0
Im making Battleship in Bluej just for the hell of it, and its almost done, but.......
Is there a command to use specific to a class to close just that class?
Like i know System.exit(0) closes everything, but i want it so that when a button is pushed, instead of closing the whole game, only one particular window (i have three different windows running during the game, each window has its own class) is closed?
Thanks.
Is there a command to use specific to a class to close just that class?
Like i know System.exit(0) closes everything, but i want it so that when a button is pushed, instead of closing the whole game, only one particular window (i have three different windows running during the game, each window has its own class) is closed?
Thanks.