Class JDialogLogin

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class JDialogLogin extends JDialog
See Also:
  • Field Details

  • Constructor Details

    • JDialogLogin

      public JDialogLogin(Frame parent)
      Creates new form JDialogLogin
      Parameters:
      parent - The parent Frame
  • Method Details

    • displayDatabaseError

      public void displayDatabaseError()
      Display error message for a database error
    • displayUserAlreadyExistsError

      public void displayUserAlreadyExistsError()
      Display error message for a user already exists error
    • displayUserDoesNotExistError

      public void displayUserDoesNotExistError()
      Display error message for a user does not exist error
    • displayWrongPasswordError

      public void displayWrongPasswordError()
      Display error message for a wrong pqassword error
    • getUsername

      public String getUsername()
      Returns:
      username
    • getPassword

      public String getPassword()
      Returns:
      password
    • isLoginCancelled

      public boolean isLoginCancelled()
      Returns:
      state of loginCancelled
    • getPlayerType

      public int getPlayerType()
      Returns:
      The player type (NEW or EXISTING) according to the radio buttons