Code example for JTextComponent

Methods: select