private void maybeShowPopup(final MouseEvent event){
  if (event.isPopupTrigger()) {
    final JPopupMenu menu=new JPopupMenu();
    menu.add(new CopyLogAction(m_textArea));
    menu.show(event.getComponent(),event.getX(),event.getY());
  }
}

private void maybeShowPopup ( final MouseEvent event ) { if ( event . isPopupTrigger ( ) ) { final JPopupMenu menu = new JPopupMenu ( ) ; menu . add ( new CopyLogAction ( m_textArea ) ) ; menu . show ( event . getComponent ( ) , event . getX ( ) , event . getY ( ) ) ; } }
shows a popup menu depending on the mouse event .
