public void addPopup(int x, int y) {
		JMenuItem item = new JMenuItem();
		
		JPopupMenu menu = new JPopupMenu();
		item = new JMenuItem("Rename");
		if(list.getSelectedIndex() == -1)
			item.setEnabled(false);
		item.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				@SuppressWarnings("unused")
				RenameFactionEditor factionEditor = new RenameFactionEditor(list.getSelectedValue());
				list.setModel(buildList());
			}
		});
		menu.add(item);
		
		item = new JMenuItem("Remove");
		if(list.getSelectedIndex() == -1)
			item.setEnabled(false);
		item.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				((DefaultListModel<String>) list.getModel()).removeElementAt(list.getSelectedIndex());
				try {
					save();
				} catch (IOException e) {
					e.printStackTrace();
				}
				list.setModel(buildList());
			}
		});
		menu.add(item);
		menu.show(list, x, y);
	}