Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using java netbeans JFrame , please help make the following sign up button works. The current login username is java and the password is 1234.
Using java netbeans JFrame, please help make the following sign up button works. The current login username is "java" and the password is 1234.
Please explain and show the code so when i press confirm button in the singup form GUI, the new login form will comes out with an updated username and password.
Split Pane Tool Bar -Internal Frame Scroll Pane Desktop Pane Layered Pane New user name Password Swing Controls label Label OK Button ON Toggle Button a-Check Box Password Confirm - Radio Button Button Group Text Area Login Form New user name Password Username Password Password Confirm Login Sign up private void jButtonlActionPerformed (java. awt.event.ActionEvent evt) /TODO add your handling code here: button private void jButton2ActionPerformed (java.awt.event.ActionEvent evt) TODO add your handling code here: Register rf -new Register (); rf.setVisible(true) rf.setLocationRelativeTo (null); private void jButtonlActionPerformed (java.awt.event.ActionEvent evt) ITODO add your handling code here: String userData"java"; String passData "1234"; String userjTextField1.getText); String pass = new String (jPasswordField1.getPassword ()); if (user.trim).toUpperCase).equals("JAVA")) user = user.toLowerCase().trim ( ); if (user.equals (userData) && pass.equals (passData))f System.out.println("Welcome " userData) else t J0ptionPane.showMessageDialog(null, "Wrong username/password", "Error",JOptionPane.ERROR_MESSAGE) Split Pane Tool Bar -Internal Frame Scroll Pane Desktop Pane Layered Pane New user name Password Swing Controls label Label OK Button ON Toggle Button a-Check Box Password Confirm - Radio Button Button Group Text Area Login Form New user name Password Username Password Password Confirm Login Sign up private void jButtonlActionPerformed (java. awt.event.ActionEvent evt) /TODO add your handling code here: button private void jButton2ActionPerformed (java.awt.event.ActionEvent evt) TODO add your handling code here: Register rf -new Register (); rf.setVisible(true) rf.setLocationRelativeTo (null); private void jButtonlActionPerformed (java.awt.event.ActionEvent evt) ITODO add your handling code here: String userData"java"; String passData "1234"; String userjTextField1.getText); String pass = new String (jPasswordField1.getPassword ()); if (user.trim).toUpperCase).equals("JAVA")) user = user.toLowerCase().trim ( ); if (user.equals (userData) && pass.equals (passData))f System.out.println("Welcome " userData) else t J0ptionPane.showMessageDialog(null, "Wrong username/password", "Error",JOptionPane.ERROR_MESSAGE)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started