Answer:

Yes. Our new program will do this.

New Program

Click here to exit

Let us write a program:

Often a real application has several ways to quit: the window's close button, a menu selection, and perhaps a button like this program.

QUESTION 21:

What Swing classes will be used in the program?