nl.nikhef.slcshttps.gui
Class PasswordPopup

java.lang.Object
  extended by nl.nikhef.slcshttps.gui.PasswordPopup

public class PasswordPopup
extends Object

Static class to get a password from the user via a popup window.

Version:
0.1
Author:
Mischa Sallé

Constructor Summary
PasswordPopup()
           
 
Method Summary
static char[] getPassword(String text)
          Shows a password popup with given text as prompt and a JPasswordField.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordPopup

public PasswordPopup()
Method Detail

getPassword

public static char[] getPassword(String text)
Shows a password popup with given text as prompt and a JPasswordField. Getting the default focus to the JPasswordField component is done using GraphTools.optionPaneSetFocus(JComponent).

Parameters:
text - prompt to show before the passwordfield
Returns:
char[] representing the password
See Also:
GraphTools.optionPaneSetFocus(JComponent)


nl.nikhef.slcshttps Mischa Sallé - msalle(AT)nikhef.nl