Code example for JTextComponent

Methods: getTextsetSelectionEndsetSelectionStart