All Packages Class Hierarchy This Package Previous Next Index
public abstract void setEchoChar(char character)
The echo character is only used if this textfield's
password property is set to true
.
The default echo character is '*'
character
- the echo character for this textfield.
public abstract char getEchoChar()
public abstract void setPassword(boolean password)
If the flag is set to true
, this textfield will become
a password field, echoing an echo character, rather than
the actual text; if the flag is set to false
, this
textfield will disregard the echo character and display the actual text.
password
- a flag indicating whether this textfield
should be a password field or not
public abstract boolean isPassword()
true
if this text component is
a password field; false
otherwise.
public abstract void setEditable(boolean editable)
If the flag is set to true
, this textfield
becomes user editable. If the flag is set to false
,
the user cannot change the text of this textfield.
editable
- a flag indicating whether this textfield
should be user editable.
public abstract boolean isEditable()
true
if this text component is
editable; false
otherwise.
public abstract void cut()
public abstract void replaceSelection(String newText)
newText
- the new text to replace the selected text
public abstract void paste()
All Packages Class Hierarchy This Package Previous Next Index