Comece e final do texto selecionado em java
getSelectionStart();
getSelectionEnd();
Mohamed Essam
getSelectionStart();
getSelectionEnd();