This is an introduction to Java programming question. Need the GUI to have a fra
ID: 665219 • Letter: T
Question
This is an introduction to Java programming question. Need the GUI to have a frame size of about (500, 400). There should be two password box, one for New Password and one for Confirm Password. There should also be a submit button for testing the password. The main details are listed below.
Suppose you work at the IT department of a university. The department is launching a project for a new course registration system. As the team’s programmer, you are assigned to implement a function that supports users to change password.
Below the specific requirements for the password change function:
1. The system shall provide a GUI for users to change their passwords;
2. The system shall ask a user to type the password two times;
3. To protect information, the password typed on the GUI will be masked;
4. The new password must comply with the password policy:
10 - 32 characters in length
must start with a letter
at least one lower case letter
at least one upper case letter
at least one number
If the new password does not comply with policy, the program shall display corresponding errors in red on the UI.
Hint: For the password text box, you can use the JPasswordField class .
Below are several sample runs of the code:
Sample run 1: Type “Ab12345” as the password
Sample run 2: Type “abc1234567” as the password
Sample run 3: Type “@abcdefghijk” as the password
Sample run 4: Type “a12345678BC” as the password
Explanation / Answer
working java code
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.