ReplaceRange Method (JTextArea)

Class

JTextArea class

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 one-based. INTEGER.
end The end position. The value is one-based. INTEGER.

Examples

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