Texture loading problem

Hiho,

I am new to jme and I tried to start my first little learning project. I started with extending FixedFrameRateGame and tried to make my own StateBasedGame. Everything seemed to work just fine until I wanted to create a State wich should contain my Mouse…



I tried to create a AbsoluteMouse like in the tutorial, but when I tried to load the texture for the mouse, it just gave me the basic ascii-symbol texture. The weird thing is I did not get any warnings AND this ascii-texture ist scaled to the real size of my PNG (32x32).



Here is my code:


  mouse=new AbsoluteMouse("The Mouse", display.getWidth(), display.getHeight());
   
    TextureState ts = display.getRenderer().createTextureState();
      Texture t = TextureManager.loadTexture(new URL("file:./data/img/cursor/pointer.png")),
          Texture.MinificationFilter.Trilinear,
          Texture.MagnificationFilter.Bilinear);
    ts.setTexture(t);
   
    mouse.setRenderState(ts);



What did I do wrong?
I know I used new URL instead of getResource(), but this is making no difference (I get the same result).
Oh, and my cursor.png is the same one used in the tutorial (jmetest.data.cursor.cursor1.png).

Thanks

are you calling updateRenderState() after you add the renderstate to the mouse?