//in order to position them jointly.
Transform3D tf1 = new Transform3D();
tf1.setTranslation(new Vector3f(-xShift,0.0f,0.0f));
TransformGroup tg1 = new TransformGroup(tf1);
tg1.addChild(tgFBox1);
tg1.addChild(tgBSphere1);
//The right cube with sreen door transparency.
Appearance fBoxApp2 = new Appearance();
fBoxApp2.setMaterial(new Material(ambientColourFBox,emissiveColourFBox,