Nifty gui problem with jme 3 30/09/2010

my programe will load (it had not error with the version that I used jme3 before) then I have this error

(I change the version of jme because I need the input manager)

[java]30 sept. 2010 21:20:25 de.lessvoid.nifty.loaderv2.types.ControlType internalApplyControl

ATTENTION: controlDefinition [draggable] missing.


at java.util.AbstractList$

at de.lessvoid.nifty.loaderv2.types.ControlType.makeFlatControlsInternal(

at de.lessvoid.nifty.loaderv2.types.ElementType.makeFlatControls(

at de.lessvoid.nifty.loaderv2.types.ElementType.prepare(

at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes.buildControl(

at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes.createControlInternal(

at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes$1.createControl(

at de.lessvoid.nifty.Nifty$ControlToAdd.createControl(

at de.lessvoid.nifty.Nifty.addControlsWithoutStartScreen(

at de.lessvoid.nifty.controls.dragndrop.CreateDraggableControl.create(

at ecran.ControlsDemoStartScreen.createlist(

at ecran.ControlsDemoStartScreen.bind(

at de.lessvoid.nifty.screen.Screen.startScreen(

at de.lessvoid.nifty.Nifty.gotoScreenInternal(

at de.lessvoid.nifty.Nifty.gotoScreen(

at de.lessvoid.nifty.Nifty.fromXml(

at mygame.Gui.simpleInitApp(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(



30 sept. 2010 21:20:25 de.lessvoid.nifty.loaderv2.types.ControlType internalApplyControl[/java]

it crashes on this line

[java] DraggableControl dg = draggableAttributes.create(nifty, screen, screen.findElementByName(“cardpanelhy” + i));


I use version 1.2 of niftygui I Had No Problem with my older version of jme3

I use the drag and drop nifty gui

Bump. Same problem here, however with creating buttons:

Neither the <control …/> tag nor the <button …/> tags seem to work :frowning:

Uhm, that looks odd. Seems like the control definition is missing. Is the “nifty-default-controls” project available in your classpath and did you include it:

<useControls filename=“nifty-default-controls.xml” /> ?

hi @void256,

(linked thread:
I fixed it!
just found that the style id is dynamic, cool!
thx for creating nifty gui! :smiley: