private void confirm() {

		if (rbBead1.isSelected())
			typeOfAtom = Element.ID_NT;
		else if (rbBead2.isSelected())
			typeOfAtom = Element.ID_PL;
		else if (rbBead3.isSelected())
			typeOfAtom = Element.ID_WS;
		else if (rbBead4.isSelected())
			typeOfAtom = Element.ID_CK;

		if (rbGrow1.isSelected())
			growMode = SAWTOOTH;
		else if (rbGrow2.isSelected())
			growMode = CURLUP;
		else if (rbGrow3.isSelected())
			growMode = RANDOM;

		distance = slider1.getValue();
		angle = slider2.getValue();
		number = slider3.getValue();

	}