Class AuthenticationPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AuthenticationPane extends JOptionPane
AuthenticationPane is an option pane that shows the username and password field, where user can input his credentials that should be used for authentication.
Author:
Jaka Bobnar
See Also:
  • Constructor Details

    • AuthenticationPane

      public AuthenticationPane()
      Constructs a new authentication pane.
  • Method Details

    • createDialog

      public JDialog createDialog(Component parent) throws HeadlessException
      Creates a dialog that contains this pane.
      Parameters:
      parent - the parent of this dialog
      Returns:
      the dialog
      Throws:
      HeadlessException - if GraphicsEnvironment.isHeadless returns true
    • getCredentials

      public static Credentials getCredentials()
      Returns the credentials if the OK button was pressed or null otherwise.
      Returns:
      the credentials