ReplaceRange Method (JTextArea)

Class

JTextArea.

Action

Replaces text within the specified range with the new text specified.

Syntax

textArea.ReplaceRange(text, start, end)
Variable Description
text The text to use as the replacement. String.
start The start position. The value is zero-based. Integer.
end The end position. The value is zero-based. Integer.

Examples

textArea.ReplaceRange("yellow", 5, 9)