Login  Register

Is is possible to change the icon of a GLWindow after it has been created?

Posted by ac on Nov 01, 2015; 4:15pm
URL: https://forum.jogamp.org/Is-is-possible-to-change-the-icon-of-a-GLWindow-after-it-has-been-created-tp4035687.html

NEWT's GLWindow does not offer an analogous API to frame.setIconImage(Image) in AWT. I know that you can set the window icons by using the resource loading mechanism before the window is initialized, i.e.:

IOUtil.ClassResources res = new ClassResources(iconImages, getClass().getClassLoader(), getClass());
NewtFactory.setWindowIcons(res);

but I'm curious to know if there is a way to change the icons after initialization.

Thanks!