Reputation: 111
Okay, so after everything i finally have the base of my game up and running! the only thing is the default window icon is the lwjgl logo :L can someone please tell me how to change this to my custom icon?
Upvotes: 0
Views: 96
Reputation: 458
/* Display the Application Icon */
BufferedImage images = null;
try {
images = ImageIO.read(mainFrame.getClass().getResource("/sample/resources/icon.gif"));
} catch (IOException es) {
es.printStackTrace();
}
mainFrame.setIconImage(images);
Upvotes: 0