The java.awt.JFrame.setDefaultCloseOperation method sets the operation that will be performed by the JFrame when the user close it. This method accepts an integer constant value representing the close operation to be performed. The possible values include EXIT_ON_CLOSE, DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, and HIDE_ON_CLOSE. It is used to customize the behavior of the JFrame when the user attempts to close it.
Java JFrame.setDefaultCloseOperation - 30 examples found. These are the top rated real world Java examples of java.awt.JFrame.setDefaultCloseOperation extracted from open source projects. You can rate examples to help us improve the quality of examples.