I'm working on a project, and i put in some code to tell the program when to stop. Basically it completes it's task then shuts itself down, however it outputs information to a text box aka log. I'd like to stop the program from running, yet leave the log open untill it is X'ed out. As it is now i'm using some control to tell an if statement the process in complete, then doing a System.exit(0); Is there a System.exit(?) that would leave the UI's open?