Hi,
I have a problem with NiftyGUI and screencontrollers. When I call a method from my screencontroller to the main class I get this error:
28-dec-2010 22:13:37 com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:710)
at com.jme3.renderer.RenderManager.render(RenderManager.java:739)
at cargame.core.CarGame.update(CarGame.java:110)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:144)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:141)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:198)
at java.lang.Thread.run(Thread.java:619)
Should I implement my screencontroller in a seperate class or in the appstate ? Is there an example how to implement a screencontroller ?
Thanks in advance.
It looks like this topic is about the same issue:
http://hub.jmonkeyengine.org/groups/gui/forum/topic/chaging-appstate-from-niftygui-event/#post-112509
Edit: It works now. See the above link.