@SuppressWarnings("serial")
	ControlPanel(Model model, ModelControl mc, AnimationControl ac) {
		super(true);
		this.mControl = mc;
		this.aControl = ac;
		stateField.setText(State.STOP.getText());
		model.addStateChangeListener(new PropertyChangeListener() {
			public void propertyChange(PropertyChangeEvent evt) {
				if (evt.getPropertyName().equals(Model.STATE)) {
					stateField.setText(evt.getNewValue().toString());
				}
			}
		});

		bPanel.add(playButton = new Button(new AbstractAction("Start") {
			public void actionPerformed(ActionEvent ae) {
				if (mControl != null) {
					if (this.getValue(NAME) == "Start") {
						this.putValue(Action.NAME, "Pause");
						mControl.startButtonActionPerformed(ae);
						aControl.startAnimatorActionPerformed(ae);
						playButton.setIcon("src\\com\\amoneim\\Images\\pause.png", "src\\com\\amoneim\\Images\\r_pause.png");
					} else if (this.getValue(NAME) == "Resume") {
						this.putValue(Action.NAME, "Pause");
						mControl.resumeButtonActionPerformed(ae);
						aControl.resumeButtonActionPerformed(ae);
						playButton.setIcon("src\\com\\amoneim\\Images\\pause.png", "src\\com\\amoneim\\Images\\r_pause.png");
					} else if (this.getValue(NAME) == "Pause") {
						this.putValue(Action.NAME, "Resume");
						mControl.pauseButtonActionPerformed(ae);
						playButton.setIcon("src\\com\\amoneim\\Images\\play.png", "src\\com\\amoneim\\Images\\r_play.png");
					} else {
						System.out.println("StartFAIL");
					}
				}
			}
		}, "src\\com\\amoneim\\Images\\play.png", "src\\com\\amoneim\\Images\\r_play.png"));

		bPanel.add(stopButton = new Button(new AbstractAction("Stop") {
			public void actionPerformed(ActionEvent ae) {
				if (mControl != null) {
					mControl.stopButtonActionPerformed(ae);
					aControl.stopAnimatorActionPerformed(ae);
					playButton.getAction().putValue(Action.NAME, "Start");
					playButton.setIcon("src\\com\\amoneim\\Images\\play.png", "src\\com\\amoneim\\Images\\r_play.png");
				} else {
					System.out.println("StopFail");
				}
			}
		}, "src\\com\\amoneim\\Images\\stop.png", "src\\com\\amoneim\\Images\\r_stop.png"));

		init();
	}