@Override public void mouseClicked(MouseEvent e){
  if (mouseClickedListener != null && e.getClickCount() == 1 && !e.isAltDown() && !e.isAltGraphDown()) {
    mouseClickedListener.mouseClicked();
  }
}

@ Override public void mouseClicked ( MouseEvent e ) { if ( mouseClickedListener != null && e . getClickCount ( ) == 1 && ! e . isAltDown ( ) && ! e . isAltGraphDown ( ) ) { mouseClickedListener . mouseClicked ( ) ; } }
handle clicks ( pressed and released ) on the text pane .
