Nifty fullscreen

hi guys, need to know how something… maybe a stupid question

i made a JFrame. There i created a SimpleApplication. Now i want to overlay a NiftyGui on that like the tutorial said


NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(

assetManager, inputManager, audioRenderer, guiViewPort);

nifty = niftyDisplay.getNifty();

nifty.fromXml("Interface/helloworld.xml", "start");

// attach the nifty display to the gui view port as a processor


// disable the fly cam



the Nifty appears… but just a small Frame on the lower left side of the screen…

how do I overlay this over the whole JFrame?

thx in advance


Set the layout of the JFrame to BoxLayout

sry to keep asking stupid questions… but i m not famliar with the boxlayout… how ever thats something i can google but…

my question is : how could i add nifty/niftydisplay to a box within boxlayout… since it isnt somethin i could add to a container, nor?!

or more frankly : i dont see how a boxlayout is going to get rid of my problem :frowning:

a code snipped would be very helpful !

thx in advance


i still want to know how a boxlayout would have helped me! but i m kinda glad i “understand” my own code know lol

didnt see, that i could do a new viewport and attach the gui in there …

anyway! Thx for helping me!

I really appreciate the help i get here!