The following is a very small program that creates a window. It doesn’t do anything, and it’s so small you might have a hard time finding it in the upper left corner of your screen. Try resizing it. A default JFrame can do a few things — it understands minimize and maximize, it can be dragged from the title bar, and it can be resized. If you resize it, you’ll notice that the content pane is completely empty — we haven’t added any components to it yet.awhen the close box is clicked, which is done below.