Search code examples
splash-screenjavajmonkeyengine

Edit startup screen in JMonkey Engine


I want to edit the startup screen of a default JMonkey project so I can replace the image which shows the JMonkey with a custom image (our project logo). I mean the screen which appears when you execute a SimpleApplication project. I'm running the JMonkey SDK on a Linux Machine (Linux Mint 13 if that matters) and with OpenJDK 7.


Solution

  • You have to change the appsettings in the main method before app.start. To do so, firstly import com.jme3.system.AppSettings;, then create a new AppSettings object with the parameter true or false, after that you can specify the location of the new image via yourAppSettingsObject.setSettingsDialogImage(path/to/image).

    To set these settings as the settings for your App object, type app.setSettings(yourAppSettingsObject);.