May 17, 2004 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB Yes, System.exit(exitCode) Ion Filipski Upvote 0 Downvote
May 17, 2004 #3 stefanwagner Programmer Oct 19, 2003 2,373 DE When you opened some files or database-connections or ... and didn't close them, this is a dirty exit and may cause memory-leaks. You might create the dialog with a reference to the resource, which has a handle to the open file... MyExitDialog med = new MyExitDialog (mainFrame); and call a to-be-written close method from the dialog: mainFrame.closeCleanly (); seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung Upvote 0 Downvote
When you opened some files or database-connections or ... and didn't close them, this is a dirty exit and may cause memory-leaks. You might create the dialog with a reference to the resource, which has a handle to the open file... MyExitDialog med = new MyExitDialog (mainFrame); and call a to-be-written close method from the dialog: mainFrame.closeCleanly (); seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung