question: private void openContextMenu ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { Collection < String > streams = new HashSet < > ( ) ; int [ ] selectedRows = table . getSelectedRows ( ) ; for ( int selectedRow : selectedRows ) { Follower selected = followers . get ( selectedRow ) ; streams . add ( StringUtil . toLowerCase ( selected . name ) ) ; } if ( ! streams . isEmpty ( ) ) { StreamsContextMenu m = new StreamsContextMenu ( streams , contextMenuListener ) ; m . show ( table , e . getX ( ) , e . getY ( ) ) ; } } }
target:  Open the context menu for the given MouseEvent if it is the popup trigger and rows are selected.