//A sphere to which Appearance, i.e. the texture is assigned.
Sphere tSphere = new Sphere(0.5f,Sphere.GENERATE_NORMALS,100,textureApp);
//The transformation group for the sphere.
TransformGroup tgSphere = new TransformGroup();
tgSphere.addChild(tSphere);
//Add everything to the scene.
BranchGroup theScene = new BranchGroup();
theScene.addChild(tgSphere);