waterNode.setDudvMapTextureString("images/water/dudvmap.png");
waterNode.setFallbackMapTextureString("images/water/water2.png");
waterNode.setFoamMapTextureString("images/water/oceanfoam.png");
// setting to default value just to show
waterNode.setWaterPlane(new Plane(new Vector3(0.0, 1.0, 0.0), 0.0));
// Create a ProjectedGrid to use as geometry for the water.
projectedGrid = new ProjectedGrid("ProjectedGrid", cam, 100, 70, 0.01f, new WaterHeightGenerator(), _timer);
// or implement your own waves like this(or in a separate class)...
// projectedGrid = new ProjectedGrid( "ProjectedGrid", cam, 50, 50,