Question: Need to be done in Java using swing and awt. This program needs to create a GUI that generates random passwords for the user. The

Need to be done in Java using swing and awt. This program needs to create a GUI that generates random passwords for the user. The program should consist of the following swing components:

1 JButton to create a password,

4 JRadio buttons to allow the user to select the size of the password in characters (8 characters, 16, 24, and 32 characters.)

3 JCheckBoxes to allow the user to select the level of complexity for the password ("Use Caps", "Use Special Characters", "Use Numbers")

1 JTextField to display the created password.

When the Create Password button is clicked by the user, the program should generate a password of random characters with a length of equal to the value chosen by the radio buttons. The password should consist only of lower case characters(a-z) unless the user has checked the various checkboxes to make the password more complex by include capital letters, numbers, or special characters($!@#%&).

Finally if the password has been generated and the user attempts to close the window, prevent the window from closing and display a dialog box to remind the user to securely record their new password somewhere.

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!