Hi there,
Normally you can destroy a frame by using the window listener and you want to destroy the internal frames,wright? If yes, add the windowListener to all the internal frames and you can destroy the frames by clicking on the x button of frame.
the below code is for destroying the frame.....
import java.awt.*;
public class TestFrame{
Test(){
// Add your necessary frame components
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent we){
System.exit(0);
}
});
}
}