edu.jhu.tmaj.client.shared
Class PasswordDialog

java.lang.Object
  extended by edu.jhu.tmaj.client.shared.PasswordDialog

public final class PasswordDialog
extends java.lang.Object

A Dialog that prompts the user for a password.


Method Summary
static java.lang.String displayDialog(java.awt.Component component, java.lang.String passwordFieldDescription, java.lang.String intructions)
          Display a dialog prompting the user for a password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

displayDialog

public static java.lang.String displayDialog(java.awt.Component component,
                                             java.lang.String passwordFieldDescription,
                                             java.lang.String intructions)
Display a dialog prompting the user for a password.

Parameters:
component - the component on which to display the dialog
passwordFieldDescription - a short description of the password the user is entering. Example: "password", "abc application password", "secret key" *
intructions - the instructions displayed to the user. Example: "Enter the password for the abc application feature".
Returns:
the password the user entered, or null if the user clicked cancel.