Class SignUp

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SignUp extends Api
SignUp class is a JPanel that allows the user to sign up for an account. It contains a form with fields for the user's name, password, and password confirmation. It also contains buttons to submit the form and to switch to the login screen.
See Also:
  • Field Details

  • Constructor Details

    • SignUp

      SignUp()
      Constructs a SignUp object.
  • Method Details

    • submitBtnHandler

      private void submitBtnHandler(ActionEvent event)
      Handles the action of the submit button. It checks
      • if the password and confirmation password match
      • if the name is not empty
      • if the password is less than 72 characters long.
      If all checks pass, it calls the Api.signUp(java.lang.String, char[]) method to create a new account. If any check fails, it shows an error message.
      Parameters:
      event - the event that triggered the method
    • loginBtnHandler

      private void loginBtnHandler(ActionEvent e)
      Handles the action of the login button. It switches the view to the login screen.
      Parameters:
      e - the event that triggered the method