public void actionPerformed(ActionEvent arg0)
	{
		if(arg0.getSource() == cancel)
		{
			setVisible(false);
			clear();
		}
		else if(arg0.getSource() == save)
		{
			if(parent == util.quest.sp)
			{
				if(loaded == null)
				{
					util.quest.slist.getSelectedValue().addAction(create());
					util.quest.sp.delete.setEnabled(true);
				}
				else edit();
				util.quest.sp.loadData(util.quest.slist.getSelectedValue());
				setVisible(false);
				clear();
			}
			else if(parent == util.quest.op.rewards)
			{
				if(loaded == null)
				{
					util.quest.op.rwcp.addAction(create());
					util.quest.op.rewards.delete.setEnabled(true);
				}
				else edit();
				util.quest.op.rewards.loadData(util.quest.op.rewards.loaded);
				setVisible(false);
				clear();
			}
			util.markFileChanged();
		}
	}