nl.nikhef.slcshttps.gui
Class PasswordPopup
java.lang.Object
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é
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordPopup
public PasswordPopup()
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
|