Jme2 nifty gui help

I've copied your xml to nifty-examples/src/main/resources/jme/overlay.xml and modified the jme2 renderer example class in nifty-exampels/src/main/java/de/lessvoid/nifty/examples/jme/JmeNifty.java to use the file and it seems to works!



do you build nifty and the jme2 renderer from svn?

can you compare your jme2 setup with the one in the example code above?

I don't use svn yet, but i do have the latest jars.

Maybe it is a problem with my controller?

I haven't seen any tutorials on how to use it so here is what I have:

public class NiftyController implements ScreenController {

    private Nifty nifty;

    private Screen screen;

    public void bind(Nifty nifty, Screen screen) {
        this.nifty = nifty;
        this.screen = screen;
    }

    public void onStartScreen() {
       
    }

    public void onEndScreen() {
       
    }
}



Also, here is my code for starting up nifty in my game state:

final JmeNiftyInputSystem jmeNiftyInput = new JmeNiftyInputSystem();

   // Add jme mouse listener
        MouseInput.get().addListener(jmeNiftyInput);

   // Add jme keyboard listener
   KeyInput.get().addListener(jmeNiftyInput);

        Future<Object> future = GameTaskQueueManager.getManager().update(new Callable<Object>() {
            public Object call() throws Exception {
                nifty = new Nifty(
                    new RenderDeviceLwjgl(),
                    new SoundSystem(new SlickSoundDevice()),
                    jmeNiftyInput,
                    new TimeProvider());

                jmeNiftyInput.bind(nifty);
                nifty.fromXml("Xenion/gui/interfaces/test.xml", "start");
                return null;
            }});
        try {
            future.get();
        } catch (Exception e) {
            e.printStackTrace();
        }

Ok, i'm updating from the svn now, i'm missing many of the nifty-jme-rendering classes… 

i should be able to fix my problem by using a niftynode instead of what I have.

I'm now getting an error with Maven when i try building the nifty-jme-renderer:  :?

"Error building POM (this may not be the project's POM"