Code example for JTextComponent

Methods: getText