Clear Method (JTextComponent)

Action

Removes all the text from text component.

Syntax

textComponent.Clear()

Examples

textComponent.Clear()