public class BPasswordField extends BTextField
In addition to the event types generated by all Widgets, BPasswordFields generate the following event types:
Constructor and Description |
---|
BPasswordField()
Create a new BPasswordField.
|
BPasswordField(int columns)
Create a new BPasswordField.
|
BPasswordField(java.lang.String text)
Create a new BPasswordField.
|
BPasswordField(java.lang.String text,
int columns)
Create a new BPasswordField.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JPasswordField |
getComponent()
Get the java.awt.Component corresponding to this Widget.
|
char |
getEchoChar()
Get the echo character to be displayed in the text field.
|
java.lang.String |
getText()
Get the text contained in the Widget.
|
void |
setEchoChar(char c)
Set the echo character to be displayed in the text field.
|
getColumns, setColumns
getCaretPosition, getLength, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible
addEventLink, addEventLink, removeEventLink
public BPasswordField()
public BPasswordField(java.lang.String text)
text
- the initial text contained in the text field (may be null)public BPasswordField(int columns)
columns
- the number of columns this text field should be wide enough to displaypublic BPasswordField(java.lang.String text, int columns)
text
- the initial text contained in the text field (may be null)columns
- the number of columns this text field should be wide enough to displaypublic javax.swing.JPasswordField getComponent()
Widget
getComponent
in class BTextField
public char getEchoChar()
public void setEchoChar(char c)
public java.lang.String getText()
getText
in class TextWidget
Written by Peter Eastman.