// create new Nifty userinterface
nifty = new Nifty(
new LwjglRenderDevice(false),
new NullSoundDevice(),
new NullInputSystem(),
new LWJGLTimeProvider());
// load GUI from file
nifty.addXml("res/xml/IntroScreen.xml");
nifty.addXml("res/xml/GameScreen.xml");
nifty.addXml("res/xml/EndScreen.xml");