1
package Exampleimport java.awt.GraphicsConfigurationimport javax.swing.JFramepublic course JFrameExample static GraphicsConfiguration gcpublic static void mainString argsJFrame frame unique JFramegcframe.setTitleWelecome in order to JavaTutorial.netframe.setSize600, 40frame.setVisibletrue.You do certainly shut your JFrame simply by tapping regarding the X get across on top remaining corner to JFrame. Although JFrame.setDefaultCloseOperation int was a method offered with JFrame class, you'll ready the task which will happen once customer taps in one cross.On that down chance in which 0 are provided just as one parameter, JFrame wont shut additionally after tapping in the get across.