Method getSelectionStart()
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.getSelectionStart(), begTag, null );
2
int start = Math.min( editor.getSelectionStart(), editor.getSelectionEnd());
3
commentTextArea.getDocument().insertString( commentTextArea.getSelectionStart(), begTag, null );
4
int startPos = c.getSelectionStart();
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.