protected void processComponentEvent(ComponentEvent e){
  if (e.getID() == ComponentEvent.COMPONENT_RESIZED && getLineWrap() == true && getHighlightCurrentLine()) {
    previousCaretY=-1;
    fireCaretUpdate(mouseListener);
  }
  super.processComponentEvent(e);
}

protected void processComponentEvent ( ComponentEvent e ) { if ( e . getID ( ) == ComponentEvent . COMPONENT_RESIZED && getLineWrap ( ) == true && getHighlightCurrentLine ( ) ) { previousCaretY = - 1 ; fireCaretUpdate ( mouseListener ) ; } super . processComponentEvent ( e ) ; }
overridden so we can tell when the text area is resized and update the current - line highlight , if necessary ( i . e . , if it is enabled and if linewrap is enabled .
