How do we stop the AWT Thread? Our Swing application will not terminate.

Christopher Schultz

You need to explicitly call System.exit(exit_value) to exit a Swing application. This is because the event dispatcher thread is not a Daemon thread, and won't allow the JVM to shut down when other threads are dead.

[See also When exactly is the AWT thread started?]
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact