Code example for JTextComponent

Methods: setBordersetCaretPositionsetText