Insert Method (JTextArea)
Class
JTextArea
class
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 one-based. INTEGER.
Examples
TextArea.Insert
("magenta", 5)