@Override
	public void actionPerformed(ActionEvent event) {
		if (event.getSource() == okButton) {
			// verify the data and set it to the local variable.
			if (cow.getText().equals("") || row.getText().equals("")) {
				shakeScreen();
				return;
			} else {
				setCowNum(Integer.valueOf(cow.getText()));
				setRowNum(Integer.valueOf(row.getText()));
				setVisible(false);
				isFinised = true;
			}
		} else if (event.getSource() == resetButton) {
			// reset the data
			setCowNum(0);
			setRowNum(0);
			cow.setText("");
			row.setText("");
		}
	}