SetText Method (JTextComponent)

Class

JTextComponent class

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")