Method getSelectionEnd()
Return type: int
Member of: javax.swing.text.JTextComponent
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 component.getDocument().insertString( component.getSelectionEnd(), endTag, null );
2 int start = Math.min( editor.getSelectionStart(), editor.getSelectionEnd());
3 commentTextArea.getDocument().insertString( commentTextArea.getSelectionEnd(), endTag, null );
4 int len = c.getSelectionEnd() - startPos;
5 int start = Math.min( editor.getSelectionStart(), editor.getSelectionEnd());
6 p.setSelectionActive (jtc != null && jtc.getSelectionStart()!=jtc.getSelectionEnd());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.