Write a small application with a GUI that could be the basis of a larger application. Your application will allow someone to enter a user name and password into separate text fields. When the user clicks the Login button, you should check whether the string in the name field matches "John" and the string in the password field matches "myPassword". If both match, put the message You have been logged in. on a result label. If they don’t match, put the message Sorry, that password is not valid. on the result label.

What will be an ideal response?


See the code in Exercise12.java, LoginWindow.java.

Computer Science & Information Technology

You might also like to view...

A Form’s _________ event occurs just before the Form is displayed on the screen, typically as a result of executing the program.

a) Display b) Raised c) Execute d) Load

Computer Science & Information Technology

Reliable code has been thoroughly ____________________ and can probably be used in a variety of situations.

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

Computer Science & Information Technology

The ____ property, as shown in the accompanying figure, is used to add white space between lines of text.

A. line-height B. kerning C. white-space D. line-spacing

Computer Science & Information Technology

The curves and directions of lines on a line chart make ________ noticeable to the user

Fill in the blank(s) with correct word

Computer Science & Information Technology