|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
javax.swing.JPasswordField
public class JPasswordField
class JPasswordField
| Nested Class Summary | |
|---|---|
protected class |
JPasswordField.AccessibleJPasswordField
AccessibleJPasswordField |
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JPasswordField()
Creates a JPasswordField object. |
|
JPasswordField(Document document,
String text,
int columns)
Creates a JPasswordField object. |
|
JPasswordField(int columns)
Creates a JPasswordField object. |
|
JPasswordField(String text)
Creates a JPasswordField object. |
|
JPasswordField(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()
Deprecated. |
String |
getText(int offset,
int length)
Deprecated. |
String |
getUIClassID()
Returns the UIClassID |
protected String |
paramString()
Returns a string representation of this JPasswordField. |
void |
setEchoChar(char echo)
setEchoChar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPasswordField()
JPasswordField object.
public JPasswordField(String text)
JPasswordField object.
text - the initial textpublic JPasswordField(int columns)
JPasswordField object.
columns - the number of columns
public JPasswordField(String text,
int columns)
JPasswordField object.
text - the initial textcolumns - the number of columns
public JPasswordField(Document document,
String text,
int columns)
JPasswordField object.
document - the document to usetext - the initial textcolumns - the number of columns| Method Detail |
|---|
public String getUIClassID()
UIClassID
getUIClassID in class JTextFieldJComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public char getEchoChar()
public void setEchoChar(char echo)
echo - the echo charpublic boolean echoCharIsSet()
true if the echo char is set,
false otherwise.public void copy()
copy in class JTextComponentpublic void cut()
cut in class JTextComponentpublic String getText()
getText in class JTextComponent
public String getText(int offset,
int length)
throws BadLocationException
getText in class JTextComponentoffset - TODOlength - TODO
BadLocationException - TODOpublic char[] getPassword()
protected String paramString()
paramString in class JTextComponentpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JTextFieldAccessibleContext object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||