Question: Using Java with JOptionPane, create a simple username and password entry and verification system in Java similar to that in the figure below. The user

Using Java with JOptionPane, create a simple username and password entry and verification system in Java similar to that in the figure below. 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 supply a correct name/password for 3 successive attempts (Use System.exit(0) to exit an application).

Can you also show the output? Thank you

Thank you in advance!Using Java with JOptionPane, create a simple username and password entry and

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!