@ Override public void mousePressed ( MouseEvent e ) { Font font = fileWindow . textArea . getFont ( ) ; FontMetrics metrics = getFontMetrics ( font ) ; int h = metrics . getHeight ( ) ; pressLine = e . getY ( ) / h ; }
Called when a mouse button is pressed .