[SOLVED] Creating Screen Control with update 3.1

Hello, i know this question might sound stupid to some, and i apologize in advance if that is the case.
Now into the problem:

I had an old jme3 project that i made some years ago, and wanted to fix it now. I used tonegodgui for the gui, but now i am getting a problem with creating the Screen object.
As the screen constructor needs an Application class object to run, and since SimpleApplication is now an interface, the old method for creating it doesnt work. The line is as simple as it get:

    Screen screen = new Screen(this);

where this is my SimpleApplication.

The error i get is this:

    IncompatibleClassChangeError: Found interface com.jme3.app.Application, but class was 
    expected

Is there any workaround for this problem? Thank you in advance :slight_smile:

Find a newer build of tonegodgui that was compiled against the newer JME. (There are a few different ones around, I guess.)

Or use the older JME.

Those are the only two options.

1 Like

@pspeed found an updated version of it on github, made by a community member. And it solved the problem. Thank you for the answer, very helpfull. :heart_eyes::heart_eyes:

1 Like