//Load the image for the texture.
TextureLoader textureLoad = new TextureLoader("./eas/miscellaneous/java3D/myTexture.jpg",null);
//Generate a (scaled) image of the texture. Height and width must be
//powers of 2.
ImageComponent2D textureIm = textureLoad.getScaledImage(64,128);
//Generate the texture.
Texture2D aTexture = new Texture2D(Texture2D.BASE_LEVEL,Texture2D.RGB,
textureIm.getWidth(),
textureIm.getHeight());
aTexture.setImage(0,textureIm);
//An Appearance which will use the texture.
Appearance textureApp = new Appearance();
textureApp.setTexture(aTexture);