setLine

public abstract void setLine(int index, String line)

Sets the line of text at the specified index.

For example, setLine(0, "Line One") will set the first line of text to "Line One".

Parameters

index

Line number to set the text at, starting from 0

line

New text to set at the specified index

Throws

If the index is out of the range 0..3