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.
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350)
at de.lessvoid.nifty.loaderv2.types.ControlType.makeFlatControlsInternal(ControlType.java:66)
at de.lessvoid.nifty.loaderv2.types.ElementType.makeFlatControls(ElementType.java:353)
at de.lessvoid.nifty.loaderv2.types.ElementType.prepare(ElementType.java:313)
at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes.buildControl(ControlAttributes.java:333)
at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes.createControlInternal(ControlAttributes.java:278)
at de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes$1.createControl(ControlAttributes.java:346)
at de.lessvoid.nifty.Nifty$ControlToAdd.createControl(Nifty.java:734)
at de.lessvoid.nifty.Nifty.addControlsWithoutStartScreen(Nifty.java:274)
at de.lessvoid.nifty.controls.dragndrop.CreateDraggableControl.create(CreateDraggableControl.java:26)
at ecran.ControlsDemoStartScreen.createlist(ControlsDemoStartScreen.java:2115)
at ecran.ControlsDemoStartScreen.bind(ControlsDemoStartScreen.java:757)
at de.lessvoid.nifty.screen.Screen.startScreen(Screen.java:162)
at de.lessvoid.nifty.Nifty.gotoScreenInternal(Nifty.java:488)
at de.lessvoid.nifty.Nifty.gotoScreen(Nifty.java:456)
at de.lessvoid.nifty.Nifty.fromXml(Nifty.java:304)
at mygame.Gui.simpleInitApp(Gui.java:375)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:155)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:102)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:151)
at java.lang.Thread.run(Thread.java:619)
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));
[/java]
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
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: http://hub.jmonkeyengine.org/forum/topic/nifty-gui-editor/page/7/#post-299241)
I fixed it!
just found that the style id is dynamic, cool!
thx for creating nifty gui!