SetText Method (JTextComponent)

Action

Sets the text content to the specified text.

Syntax

textComponent.SetText(text)
Variable Description
text The new text content. String.

Examples

textComponent.SetText("blue")