private void showContextMenu(final MouseEvent event){
  if (producers.getSelectedIndex() > -1) {
    JPopupMenu contextMenu=new JPopupMenu();
  }
}

private void showContextMenu ( final MouseEvent event ) { if ( producers . getSelectedIndex ( ) > - 1 ) { JPopupMenu contextMenu = new JPopupMenu ( ) ; } }
show the consumer context menu if a consumer is selected .
