uk.ac.man.bioinf.gui.util.forms
Class PasswordDialog

java.lang.Object
  |
  +--uk.ac.man.bioinf.gui.util.forms.PasswordDialog

public class PasswordDialog
extends Object

Pop up Dialog box to get a password off a user.

Version:
1.0
Author:
C.Miller

Field Summary
protected  JFrame parent
           
protected  JPasswordField password
           
protected  JCheckBox remember
           
protected  JTextField userName
           
 
Constructor Summary
PasswordDialog(JFrame parent)
           
PasswordDialog(JFrame parent, String userNameLabel, String passwordLabel)
           
PasswordDialog(JFrame parent, String userNameLabel, String passwordLabel, String initialUserName, String initialPassword)
           
PasswordDialog(JFrame parent, String userNameLabel, String passwordLabel, String rememberLabel, String initialUserName, String initialPassword, boolean initialRemember)
           
 
Method Summary
 char[] getPassword()
           
 JComponent getPasswordPane()
           
 String getUserName()
           
 boolean isPasswordToBeRemembered()
           
 void setPassword(String pw)
           
 void setRememberPassword(boolean r)
           
 void setUserName(String un)
           
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected JFrame parent

userName

protected JTextField userName

password

protected JPasswordField password

remember

protected JCheckBox remember
Constructor Detail

PasswordDialog

public PasswordDialog(JFrame parent)

PasswordDialog

public PasswordDialog(JFrame parent,
                      String userNameLabel,
                      String passwordLabel)

PasswordDialog

public PasswordDialog(JFrame parent,
                      String userNameLabel,
                      String passwordLabel,
                      String initialUserName,
                      String initialPassword)

PasswordDialog

public PasswordDialog(JFrame parent,
                      String userNameLabel,
                      String passwordLabel,
                      String rememberLabel,
                      String initialUserName,
                      String initialPassword,
                      boolean initialRemember)
Method Detail

show

public void show()

getPassword

public char[] getPassword()

getUserName

public String getUserName()

setPassword

public void setPassword(String pw)

setUserName

public void setUserName(String un)

isPasswordToBeRemembered

public boolean isPasswordToBeRemembered()

setRememberPassword

public void setRememberPassword(boolean r)

getPasswordPane

public JComponent getPasswordPane()