public void initTreeRightClickPopup() {
        treeRightClickPopup = new JPopupMenu();
        JMenuItem menuItem = new JMenuItem("Get Card Info");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (Card c: cardTreePanel.getCardBuffer()) {
        			new CardInfoPanel(c, SwingHelp.getOwningFrame(cardTreePanel.getCardTree()));
        		}
        	}
        });
        treeRightClickPopup.add(menuItem);
        
        menuItem = new JMenuItem("Add to Deck");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (Card c: cardTreePanel.getCardBuffer()) { //Cycles through card buffer and adds cards to deckTable. 
  				  refComplex.addCard(c);
  			  }
        	}
        });
        treeRightClickPopup.add(menuItem);
        
        menuItem = new JMenuItem("Add 4 to Deck");
        menuItem.addActionListener(new ActionListener() {
        	public void actionPerformed(ActionEvent e) {
        		for (Card c: cardTreePanel.getCardBuffer()) { //Cycles through card buffer and adds cards to deckTable. 
  				  for (int i = 0; i < 4; i++) {
  					  refComplex.addCard(c);
  				  }
  			  }
        	}
        });
        treeRightClickPopup.add(menuItem);
        
        MouseListener popUpListener = new RightClickTreeListener(); 
        cardTreePanel.getCardTree().addMouseListener(popUpListener);
	}