setKey(char key) If a keyboard event is currently being handled by the text box, this method
replaces the unicode character or key code associated with it.
If a keyboard event is currently being handled on this text box, calling
this method will suppress it. This allows listeners to easily filter
keyboard input.
If a keyboard event is currently being handled by the text box, this method
replaces the unicode character or key code associated with it. This allows
listeners to easily filter keyboard input.
Parameters: key - the new key value
Turns read-only mode on or off.
Parameters: readOnly - if true, the widget becomes read-only; iffalse the widget becomes editable
setSelectionRange
public void setSelectionRange(int pos, int length)(Code)
Sets the range of text to be selected.
Parameters: pos - the position of the first character to be selected Parameters: length - the number of characters to be selected