I have not created video tutorial for flag waving.
This is just a demo video and do note i am not using shaders, it is just a animation i am playing by updating mesh.
You can do usual soft body animation in blender.You can search the web for “Animating flag using blender softbody” . There are lots of videos on youtube.
Then for importing it in jme, here is how i am doing it