The close () in JFrame unfortunately does not exist. Nevertheless, we can easily form close.
jFrameInstance.setVisible(false);
or
jFrameInstace.dispose();
The first method described only invisible form. We can work with him in the future. The second method invisible form and releases all used resources.