Problem with setting game window's title

In SimpleInitApp, I have as first instruction:

[java]this.settings.setTitle(“Playing with JME”);[/java]



But for some reason it doesn’t work, it still says JMonkeyEngine 3.0. Also when in main I do:



[java] gemfinder_main app = new gemfinder_main();

app.setShowSettings(false);

app.settings.setTitle(“Playing with JME”);

app.start();[/java]

it gives NullPointer Exception at line which sets title.

Read the manual. You make a new forum thread for basically each line in your application and all of your questions til now have been answered in the manual already. You have to create an AppSettings object.

1 Like