Create an application that uses a card layout with three cards. The first card—a login card—should have two text fields, one for a user identification and the other for a password. There are two users—Bob and Fred—whose passwords are “mubby” and “goolag”, respectively. If Bob logs in, switch to a card—the bob card— that has a text field, a text area, and two buttons. If the first button is pressed, get the text from the text field and append it to the text area. If the second button is pressed, return to the login card. If Fred logs in, switch to a card—the fred card—that has three buttons. If the first button is pressed, change the background color to green. If the second button is pressed, change the background color to red. If the third button is pressed, return to the login card.

What will be an ideal response?


See the code in Exercise5.java, SimpleCardWindow.java.

Computer Science & Information Technology

You might also like to view...

Match the following parts of a motherboard with their description

I. Adapter card II. Data bus III. BIOS IV. CMOS V. EIDE A. Legacy drive interface B. Also known as expansion card C. Used to start up the computer D. Volatile memory E. Wires over which data flows

Computer Science & Information Technology

A shape may have a(n) ________ that is used to change its shape

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ____________________ is an individual image that is used in animation.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ____ statement directs a program’s flow through the statements within it, while countingthrough a range of numbers.

A. doTogether B. if C. for D. doInOrder

Computer Science & Information Technology