0

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?

Thanks

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by c.pentasuglia
0

You will have to control when the program uses the System.exit() method. Don't use it until you want the the program execution to end.
You could add listeners to the window you want to leave displayed that would call System.exit() when the window is closed.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.