ADP262S-Prac5-2024.pdf
Document Details
Uploaded by BeneficentColumbus
Cape Peninsula University of Technology
2024
Tags
Full Transcript
Cape Peninsula University of Technology Department of Information Technology Application Development Practice II 11 Mar 2024 Prac 5: Gui Write the definition for a worker class called User, with instance variables for a username and correspond...
Cape Peninsula University of Technology Department of Information Technology Application Development Practice II 11 Mar 2024 Prac 5: Gui Write the definition for a worker class called User, with instance variables for a username and corresponding password. Write a Java application to produce the following Gui. Make use of an arraylist to store User objects containing valid username/password pairs. Add some validation for user input. Use JOptionPane class to display an appropriate message for a valid/invalid login. OPTIONAL: add functionality to add new users.