-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to restart gracefully #23
Comments
How does |
Sorry. not crashing. I meant the JFrame was disposed before I can save up some objects. So I'm hoping not to dispose the JFrame. But if I set the keepRunning to false, the beryx console would just halt and no longer work. So my question is how can I make the console work again without disposing/rebuilding the whole JFrame ? |
I'm not sure if it helps, but try to replace this line with:
|
My first objective is to find out how to exit the text-io properly. In my case in a class called
When I choose the
|
How do I restart a SwingTextTerminal gracefully without quitting the application ?
I have a main application running side-by-side with a SwingTextTerminal console in Windows.
e.g. I have a while loop that set up a menu for querying things.
Previously, when I call
terminal.dispose(null)
to end the SwingTextTerminal instance, it would crash.So I end up always calling
system.exit(0)
to end everything (the main application and the beryx terminal).But what if I simply want to quit the existing terminal that has been corrupted and restart it since I want to keep the main application running ?
How do I do that ?
The text was updated successfully, but these errors were encountered: