Write a small application with a GUI that could be the basis of a larger application. Your application will ask whether the user is over 16 years of age. Display the text Are you at least 16 years old? in a label. If the user clicks the Yes button, display the message The user is 16 years old. in a result label. Otherwise, display The user is not yet 16 years old. in the result label. In both cases, make the two buttons invisible.

What will be an ideal response?


See the code in Exercise16.java, SizeWindow.java.

Computer Science & Information Technology

You might also like to view...

What is B element?

What will be an ideal response?

Computer Science & Information Technology

Another word for “local” variables is _________ variables.

A. static B. automatic C. initialized D. function

Computer Science & Information Technology

What is a server-based network, and what are it's advantages and disadvantages?

What will be an ideal response?

Computer Science & Information Technology

In which of the following situations would you consider inserting a soft return instead of a hard return?

What will be an ideal response?

Computer Science & Information Technology