public void setFormula(String[] formula) {
		int dim = 1;
		if (formula != null)
			dim = formula.length;
		else
			formula = new String[] { "0" };
		if (numSpinner != null)
			numSpinner.setCrt(dim);
		if (numField != null)
			numField.setText("" + dim);

		this.formula = formula;

		display();
	}