I'm sorry for the question, it may already have been answered in another topic, but my search-fu is weak.
I've been trying to put some shadow effects. Where can I find a correct code that shows how to implement that? I put a SpotLight with setShadowCaster(true) and it didn't work.
The jmetest package is an endless (well almost) resource of examples and howto's.
you are looking for jmetest.renderer.TestShadowPass.
The jmetest.TestChosser app also has a search functionality, which maybe leads you faster to the goal than searching the whole jme source.