How do I close a JFrame application?
Category: javax.swing, viewed: 7852 time(s).
Closing a JFrame application can be done by setting the default close operation of the frame. There are some defined constant for the default operation. These constant includes EXIT_ON_CLOSE, HIDE_ON_CLOSE, DO_NOTHING_ON_CLOSE and DISPOSE_ON_CLOSE.
To exit an aplication we can set it to EXIT_ON_CLOSE, this option will call the System.exit() method when user initiate a close operation on the frame.
Download Hundreds of Complimentary Industry Resources
Get hundreds of popular Industry magazines, white papers, webinars, podcasts, and more;
all available at no cost to you. With more than 600 complimentary offers, you'll find
plenty of titles to suit your professional interests and needs.
Click Here and Sign up today!


