Question: This is in Java: Much appreciated! Create a simple username and password entry and verification system in Java similar to that in the figure below.

This is in Java: Much appreciated! Create a simple username and password entry and verification system in Java similar to that in the figure below.

This is in Java: Much appreciated! Create a simple username and password

The user should be alerted using JOptionPane.showMessageDialog if the name/password entry succeeds or fails in authenticating the user. You may assume that method lookup(String name, String password) exists which returns true if the password is valid for the given name, otherwise lookup(String name, String password) will return false. You may select any hardcoded name/password combination to be the correct one.

b) Extend your application to exit if the user fails to enter a correct name/password for 3 successive attempts (Use System.exit(0) to exit an application).

Username: Password: Login

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!