Class Password

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

public class Password extends JDialog
A dialog for verifying passwords with a single public static method verify().
Version:
1.0
Author:
Douglas Brown
See Also:
  • Method Details

    • verify

      public static boolean verify(String password, String fileName)
      Shows a dialog and verifies user entry of the password.
      Parameters:
      password - the password
      filename - the name of the password-protected file (may be null).
      Returns:
      true if password is null, "", or correctly verified