@Override
  public void simpleInitApp() {
    viewPort.setBackgroundColor(ColorRGBA.LightGray);
    initKeys();

    /* Add a light source so we can see the model */
    DirectionalLight dl = new DirectionalLight();
    dl.setDirection(new Vector3f(-0.1f, -1f, -1).normalizeLocal());
    rootNode.addLight(dl);

    /* Load a model that contains animation */
    Node player = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml");
    player.setLocalScale(0.5f);
    rootNode.attachChild(player);

    /* Use the model's AnimComposer to play its "stand" animation clip. */
    control = player.getControl(AnimComposer.class);
    control.setCurrentAction("stand");

    /* Compose an animation action named "halt"
       that transitions from "Walk" to "stand" in half a second. */
    BlendSpace quickBlend = new LinearBlendSpace(0f, 0.5f);
    Action halt = control.actionBlended("halt", quickBlend, "stand", "Walk");
    halt.setLength(0.5);

    /* Compose an animation action named "advance"
       that walks for one cycle, then halts, then invokes onAdvanceDone(). */
    Action walk = control.action("Walk");
    Tween doneTween = Tweens.callMethod(this, "onAdvanceDone");
    advance = control.actionSequence("advance", walk, halt, doneTween);
  }
Sample 7 - Load an OgreXML model and play some of its animations.
jme3-examples/src/main/java/jme3test/helloworld/HelloAnimation.java