Nifty backgroundImage problem

Hi i’m new at jme3 and Nifty, I create an empty gui but whenever I try to change the backgroundImage of a panel there is an exception: java.lang.UnsupportedOperation

I don’t use nifty but I’m sure the entire stack trace will help, along with some code that throws it.

Not very experienced with NiftyGUI, but from what I’ve used, it’s a “pain in the ass” because of how sometimes there are no guidelines on how to do certain things.

But if you show some code, I can compare it with the code I managed to get working, and maybe I can help.

Most of nifty is pretty well explained in the nifty gui manual. I’ve only hit a couple of issues that I needed to look at the source code for. That being said, a unsupported operations exception sounds like you generated a controller and auto implemented all the methods. We would need to see the stack trace and your code to help you out further.

2 Likes