Insert Method (JTextArea)
Class
JTextArea
.
Action
Inserts the specified text at the specified position.
Syntax
textArea
.
Insert
(
text
,
pos
)
Variable
Description
text
The text to insert.
String
.
pos
The position at which to insert text. The value is zero-based.
Integer
.
Examples
textArea.Insert
("magenta", 5)