Hey guys, I am working on a project for school using Slick2D, and I’m trying to change the icon of the program but no matter what size Icon I try to use none of them work, it just displays the default image for a program.
Here’s what I’m trying to change the icon to:
Here’s what it’s displaying:
My code:
public Main(String name) throws SlickException {
super(name);
app = new AppGameContainer(this);
app.setIcon(texturePath + "icon.png");
app.setTargetFrameRate(75);
app.setDisplayMode(600, 700, false);
app.setForceExit(true);
app.setShowFPS(false);
app.setAlwaysRender(true);
app.start();
}
I have tried this with x16, x32, x64, x128 images and none of them have worked
I know its reading the right image, because if the path is incorrect it throws an error and closes the application.
Thanks!