[SOLVED] setting window title


Im a noob and have a (hopefully) simple question:

How can I set the title of the window?

That did not work:

[java] @Override

public void simpleInitApp()


settings.setTitle( "bla");[/java]

What did I miss?

Thank you

You have to set it before you start the app. https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:intermediate:simpleapplication

thanx a lot!

This no longer works:

[java] VidyaGame app = new VidyaGame();

//Prevents the Jmonkey dialog window from popping up. Must be set before app.start()


app.setTitle("Title of Window Goes Here");


I get the following error:

[xml]Exception in thread "main" java.lang.Error: Unresolved compilation problem:

Cannot make a static reference to the non-static field settings

at org.VidyaGame.main(VidyaGame.java:75)


Is there another method?

in main method where you have app.start()

AppSettings setting= new AppSettings(true);

setting.setTitle(“Child of Ace”); //instead of child of ace you should write the window title you want

main app= new main(); app.setShowSettings(false); app.setSettings(setting);




Ahh, thanks! I hadn’t noticed the "app.setSettings(setting); line. It works now.