A good answer might be:It should close the window. | |
WindowQuitter ClassThe abstract windowing toolkit comes with a class called WindowAdapter. A WindowAdapter object is an event listener for window (ie. frame) events. To create a listener for a frame object do this:
The WindowAdapter class has many methods in it. To respond to window closing events, override the windowClosing() method. The Java system sends this method a WindowEvent object when the close window button is clicked. A listener can respond to several types of events, but it must override the appropriate method for each type of event. Your program can do whatever it needs to in response to the event. In WindowQuitter, we exit the entire program. | |
QUESTION 4:Would a large application exit the entire program when a "close window" button is clicked? Click Here after you have answered the question |