public ButtonPanel(PlayerCharacter apc){
		
		this.pc = apc;
		ml = new MyListener(pc);
		
		
		
		staminaButton.setActionCommand("stamina");
		agilityButton.setActionCommand("agility");
		logicButton.setActionCommand("logic");
		creativityButton.setActionCommand("creativity");
		wisdomButton.setActionCommand("wisdom");
		charismaButton.setActionCommand("charisma");
		
		staminaButton.addActionListener(ml);
		agilityButton.addActionListener(ml);
		logicButton.addActionListener(ml);
		creativityButton.addActionListener(ml);
		wisdomButton.addActionListener(ml);
		charismaButton.addActionListener(ml);

		BoxLayout b = new BoxLayout(this, BoxLayout.Y_AXIS);
		setLayout(b);

		
		add(staminaButton);
		add(agilityButton);
		add(logicButton);
		add(creativityButton);
		add(wisdomButton);
		add(charismaButton);
	}