set slick2d game icon?

Does anyone know how to change the default slick2d game engine icon? I looked on the java docs for it on their site (or whatever its called) and I dont really understand how to implement it. any ideas?

Where is this visible? Is it in the applet, or in the corner of the window?

in the corner of the window and on the dock(im not too sure what its called in windows 7 but that bar on the bottom with the open apps on it)

Isn’t it just container.setIcon(“data/icon.png”);

Try this:

GameContainer.setIcon(String[] imageRefs)

According to LWJGL docs:

  • On Windows you should supply at least one 16x16 icon and one 32x32.
  • Linux (and similar platforms) expect one 32x32 icon.

JavaDocs

On Mac you’ll need to change the .app icon itself.