@Override
	public void actionPerformed(ActionEvent e)
	{
		try {
			JComboBox c = (JComboBox)e.getSource();
			if(c.equals(powerType))
			{
				card.setPowerType((String)c.getSelectedItem());
			}
			else if(c.equals(tier))
			{
				card.setTier((String)c.getSelectedItem());
			}
			else if(c.equals(actionType))
			{
				card.setActionType((String)c.getSelectedItem());
			}
			else if(c.equals(attackType))
			{
				card.setAttackType((String)c.getSelectedItem());
			}
			else if(c.equals(classs))
			{
				card.setClasss((String)c.getSelectedItem());
			}
		} catch(Exception e1) {
		}
		try {
			JButton b = (JButton)e.getSource();
			if(b.equals(save))
			{
				System.out.println("save");
				save();
			}
			else if(b.equals(newParam) && body.size() < 5)
			{
				body.add(new BodyParam());
				canvas.addStuff();
			}
			else if(b.equals(delParam))
			{
				body.remove(body.size() - 1);
				canvas.addStuff();
			}
		} catch(Exception e1) {
		}
		canvas.repaint();
	}