question: private void showPopupMenu ( final MouseEvent event ) { final int index = m_tabbedPane . indexAtLocation ( event . getX ( ) , event . getY ( ) ) ; if ( index == - 1 ) { return ; } final CGraphPanel child = ( CGraphPanel ) m_tabbedPane . getComponentAt ( index ) ; final JPopupMenu menu = new JGraphTabMenu ( m_tabbedPane , child ) ; menu . show ( event . getComponent ( ) , event . getX ( ) , event . getY ( ) ) ; }
target:  Shows a popup menu for the given event.