question: protected void processComponentEvent ( ComponentEvent e ) { if ( e . getID ( ) == ComponentEvent . COMPONENT_RESIZED && getLineWrap ( ) == true && getHighlightCurrentLine ( ) ) { previousCaretY = - 1 ; fireCaretUpdate ( mouseListener ) ; } super . processComponentEvent ( e ) ; }
target:  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.