HELI-X. transition from swing to NiftyGui


the transition from the swing interface to NiftyGui is nearly finished. You may have a look here:


The code for the file selector might be of use to others. It can be found here: http://hub.jmonkeyengine.org/forum/topic/niftygui-file-selector/


Cool! :smiley: how do you made those graphic panels in flight mode configuration window ? (at 1:52) .I didn’t know that I could make something like that with nifty! .

In the plugins there is an ImagePainter with which you can paint lines on a texture. The integratiion with NiftyGui is made like this:

Texture2D tex = new Texture2D(painter.getImage());
RenderImage ri = new RenderImageJme(tex);
Element image = nifty.findPopupByName(“name”).findElementByName(“image”);
NiftyImage newImage = new NiftyImage(nifty.getRenderEngine(), ri);

1 Like

Very impressive user interface, looks neat. I was wondering in the previous comment-

Texture2D tex = new Texture2D(painter.getImage());

What type of object is the painter?

Heli said: In the plugins there is an ImagePainter

painter is an ImagePainter