There is no setConfigShowMode method

Hi!

I was trying to run the first tutorial by flag rush, but Eclipse can't seem to find method setConfigShowMode anywhere



import com.jme.app.SimpleGame;
 
public class Lesson1 extends SimpleGame {
   /**
    * Main method is the entry point for this lesson. It creates a
    * SimpleGame and tells the dialog to always appear. It then
    * starts the main loop.
    * @param args
    */
   public static void main(String[] args) {
       Lesson1 app = new Lesson1();
            app.setConfigShowMode(ConfigShowMode.AlwaysShow);
            app.start();
   }
 
        protected void simpleInitGame() {
 
   }
 
}



When i write "app.set", eclipse only suggests these methods: setDialogBehaviour (with 2 overloads) and setThrowableHandler. I looked in the SimpleGame class and all the classes it extends, but I can't find it either...

Where is it then?

Try importing com.jme.app.AbstractGame

I would say, try update to jME 2.0 (?)

There is no setDialogBehavior() in jME 2.0, you set it through setConfigShowMode().

tim8dev said:

I would say, try update to jME 2.0 (?)
There is no setDialogBehavior() in jME 2.0, you set it through setConfigShowMode().


Yeah this may be the problem, I don't know which one I actually downloaded, I just followed the first installing tutorial that I found. I'll try that video tutorial now, see how it goes.

Thanks!

Yup, that solved it  :slight_smile:

Thanks!

No problem :wink: