private void confirm() {

		if (rb1A.isSelected())
			typeOfA = Element.ID_NT;
		else if (rb1B.isSelected())
			typeOfA = Element.ID_PL;
		else if (rb1C.isSelected())
			typeOfA = Element.ID_WS;
		else if (rb1D.isSelected())
			typeOfA = Element.ID_CK;

		if (rb2A.isSelected())
			typeOfB = Element.ID_NT;
		else if (rb2B.isSelected())
			typeOfB = Element.ID_PL;
		else if (rb2C.isSelected())
			typeOfB = Element.ID_WS;
		else if (rb2D.isSelected())
			typeOfB = Element.ID_CK;

		distance = slider1.getValue();
		strength = slider2.getValue() * 0.01;

	}