Program- Write a program with a graphical interface that implements a login window with text fields for the user name and password.
When the login is successful, hide the login window and open a new window with a welcome message. Follow these rules for validating the password:
-. The user name is not case sensitive.
- The password is case sensitive.
- The user has three opportunities to enter valid credentials.
Otherwise, show an error message and terminate the program. When the program starts, read the file users.txt.
Each line in that file contains a username and password, separated by a space. You should make a users.txt file for testing your program.
The password is shown as it is typed. Browse the Swing documentation to find an suitable component for entering a password. Enhance the solution of Exercise P11.26 by using this component instead of a text field.
Please show me all the working and provide the answer.