title: To Get the start and end positions of String text in java jTextArea
body: <p>I am implementing a spellchecker using apached lucene 3.6
   Want to integrate the highlighting of mispelled words with 
   the Highlight class using the "start" and "end" position of the words.</p>
  
  <p>Will like to know how to get start and end positions of 
   text as they are entered into the jtextarea.</p>
  
  <p>I know will have to use keyboard and mouse event listeners.</p>
  
  <p>But how do I get the "start" and "end" position of each word 
   in the string of text.</p>
  
  <p>thank you.</p>