public void initResultsListRightClickPopup(JPopupMenu resultsListRightClickPopup, JList list) {
		final JList resultsList = list;
        JMenuItem menuItem = new JMenuItem("Get Card Info");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (int i: resultsList.getSelectedIndices()) {
        			Card c = (Card) resultsList.getModel().getElementAt(i);
        			new CardInfoPanel(c, SwingHelp.getOwningFrame(resultsList));
        		}
        	}
        });
        resultsListRightClickPopup.add(menuItem);
        
        menuItem = new JMenuItem("Add to Deck");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (int i: resultsList.getSelectedIndices()) { //Cycles through selected indices and adds cards to deckTable. 
  				  refComplex.addCard((Card)resultsList.getModel().getElementAt(i));
  			  }
        	}
        });
        resultsListRightClickPopup.add(menuItem);
        
        menuItem = new JMenuItem("Add 4 to Deck");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (int selectedRow: resultsList.getSelectedIndices()) { //Cycles through selected indices and adds cards to deckTable. 
  				  for (int i = 0; i < 4; i++) {
  					  refComplex.addCard((Card)resultsList.getModel().getElementAt(selectedRow));
  				  }
  			  }
        	}
        });
        resultsListRightClickPopup.add(menuItem);
	}