Appearance a = new Appearance();
a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
TransformGroup sphereTrans = new TransformGroup();
sphereTrans.addChild(new Sphere(1.f, Sphere.GENERATE_NORMALS,40, a));
scene.detach();
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
objRoot.addChild(sphereTrans);
AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
objRoot.addChild(aLgt);