TextArea

Constructs a new text area with the empty string as text.
This text area is created with scrollbar visibility equal to
SCROLLBARS_BOTH, so both vertical and horizontal
scrollbars will be visible for this text area.

TextArea

Constructs a new text area with the specified text.
This text area is created with scrollbar visibility equal to
SCROLLBARS_BOTH, so both vertical and horizontal
scrollbars will be visible for this text area.

Parameters:

text - the text to be displayed; if
text is null, the empty
string "" will be displayed

TextArea

Constructs a new text area with the specified number of
rows and columns and the empty string as text.
A column is an approximate average character
width that is platform-dependent. The text area is created with
scrollbar visibility equal to SCROLLBARS_BOTH, so both
vertical and horizontal scrollbars will be visible for this
text area.

TextArea

Constructs a new text area with the specified text,
and with the specified number of rows and columns.
A column is an approximate average character
width that is platform-dependent. The text area is created with
scrollbar visibility equal to SCROLLBARS_BOTH, so both
vertical and horizontal scrollbars will be visible for this
text area.

Parameters:

text - the text to be displayed; if
text is null, the empty
string "" will be displayed

appendText

replaceRange

Replaces text between the indicated start and end positions
with the specified replacement text. The text at the end
position will not be replaced. The text at the start
position will be replaced (unless the start position is the
same as the end position).
The text position is zero-based. The inserted substring may be
of a different length than the text it replaces.

Note that passing null or inconsistent
parameters is invalid and will result in unspecified
behavior.

minimumSize

paramString

Returns a string representing the state of this TextArea.
This method is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not be
null.

getAccessibleContext

Returns the AccessibleContext associated with
this TextArea. For text areas, the
AccessibleContext takes the form of an
AccessibleAWTTextArea.
A new AccessibleAWTTextArea instance is created if necessary.