How to close a java swing application from the code
Posted
by hstoerr
on Stack Overflow
See other posts from Stack Overflow
or by hstoerr
Published on 2008-11-03T08:01:53Z
Indexed on
2010/04/06
5:33 UTC
Read the original article
Hit count: 247
What is the proper way to terminate a Swing application from the code, and what are the pitfalls?
I'd tried to close my application automatically after a timer fires. But just calling dispose() on the JFrame didn't do the trick - the window vanished but the application did not terminate. However when closing the window with the close button, the application does terminate. What should I do?
© Stack Overflow or respective owner