hello sir,
I want to close a frame when I press a button in this frame. Please suggest me how to do so with reference to my program ?

This is my program :

import javax.swing.*;
import...