public void documentAboutToBeChanged(DocumentEvent event){
  documentLastModified=System.currentTimeMillis();
}

public void documentAboutToBeChanged ( DocumentEvent event ) { documentLastModified = System . currentTimeMillis ( ) ; }
this method used to assess whether the document has changed between the time that the parser was called and when it completes .
