The typical Swing application starts the EDT at the beginning and when the last window is closed the Application stops basically with a System.exit either implicit or explicit.
But my little application is actually a plugin for a framework which knows nothing about Swing. My plugin will when called display a dialog, in order to get some input from the user and exit afterwards but the framework will/must keep running. So I can’t call System.exit.
But if I don’t do that the EDT will continue to run and once the framework is finished the EDT will still run and run and run …
So I’d like to kill the EDT without killing the application. How do I do that?
The following document from Oracle/Sun shed some light on the issue: AWT Threading Issues