private boolean findNextToken(){
  boolean foundToken=matcher.find();
  if (foundToken) {
    int begin=matcher.start();
    int end=matcher.end();
    String text=matcher.group();
    currentTextItem=new TextItem(begin,end,text);
  }
 else {
    currentTextItem=null;
  }
  return foundToken;
}

private boolean findNextToken ( ) { boolean foundToken = matcher . find ( ) ; if ( foundToken ) { int begin = matcher . start ( ) ; int end = matcher . end ( ) ; String text = matcher . group ( ) ; currentTextItem = new TextItem ( begin , end , text ) ; } else { currentTextItem = null ; } return foundToken ; }
find the next token in the text area .
