javax.swing
public class JPasswordField extends JTextField
| Nested Class Summary | |
|---|---|
| protected class | JPasswordField.AccessibleJPasswordField
AccessibleJPasswordField |
| Constructor Summary | |
|---|---|
| JPasswordField()
Creates a JPasswordField object. | |
| JPasswordField(String text)
Creates a JPasswordField object.
| |
| JPasswordField(int columns)
Creates a JPasswordField object.
| |
| JPasswordField(String text, int columns)
Creates a JPasswordField object.
| |
| JPasswordField(Document document, String text, int columns)
Creates a JPasswordField object.
| |
| Method Summary | |
|---|---|
| void | copy()
Copies the selected text into the clipboard. |
| void | cut()
Cuts the selected text and puts it into the clipboard. |
| boolean | echoCharIsSet()
Returns true if this JPasswordField has a character set for echoing.
|
| AccessibleContext | getAccessibleContext()
getAccessibleContext
|
| char | getEchoChar()
getEchoChar
|
| char[] | getPassword()
Returns the text contained in this TextComponent. |
| String | getText()
Returns the text contained in this TextComponent. |
| String | getText(int offset, int length)
Fetches a portion of the text represented by the component.
|
| String | getUIClassID()
Returns the UIClassID
|
| protected String | paramString()
Returns a string representation of this JPasswordField. |
| void | setEchoChar(char echo)
setEchoChar
|
JPasswordField object.JPasswordField object.
Parameters: text the initial text
JPasswordField object.
Parameters: columns the number of columns
JPasswordField object.
Parameters: text the initial text columns the number of columns
JPasswordField object.
Parameters: document the document to use text the initial text columns the number of columns
Returns: true if the echo char is set,
false otherwise.
Returns: the AccessibleContext object
Returns: the echo char
Returns: char[]
Deprecated:
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException.Returns: String
Deprecated:
Fetches a portion of the text represented by the component. Returns an empty string if length is 0. If the underlying document is null, will give a NullPointerException.Parameters: offset TODO length TODO
Returns: String
Throws: BadLocationException TODO
UIClassID
Returns: the string "PasswordFieldUI"
Returns: String
Parameters: echo the echo char