Question: 2. your understanding of GUI and event-driven programming in Java 3. your knowledge of using NetBeans GUI Builder to develop Java SE applications. Program Structures
2. your understanding of GUI and event-driven programming in Java 3. your knowledge of using NetBeans GUI Builder to develop Java SE applications. Program Structures JFrame Form for new user registration. The registration GUI is shown in Fig. (a). The put, one components include two labels (User Name and Password), one text field for user name in password field for password input, two buttons (register and cancel), and one label of message as shown below. The user actions and their corresponding event listener methods are as follows: User ActionListener methods (X is the cancel button object name): clear the Click cancel button XactionPerformed input in the user name text field, and the password field; also clear the message arca. Click register button | XactionPerformed (X s the register button object name) : validate the password (has at least one digit and one letter). If the password is valid, display message "registration successful" in the message area, as shown in Fig. (b); otherwise display an error message of "a password has at least one digit and one letter" in red color in the message area, as shown in Fig. (c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
