Hello,
I’m trying to change my application TaskBar Icon but I can’t.
I’m using setIconImages() providing a lot of image formats… the Frame Icon changes but the TaskBar Icon dosen’t change.
Here’s the part of code:
from javax.imageio import ImageIO
from java.net import URL
url16 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_16.png")
url32 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_32.png")
url64 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_64.png")
url128 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_128.png")
url256 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_256.png")
url512 = URL("http://localhost:8088/main/system/images/Builtin/Italprogetti/EXOOS_512.png")
icons = []
icons.append(ImageIO.read(url16))
icons.append(ImageIO.read(url32))
icons.append(ImageIO.read(url64))
icons.append(ImageIO.read(url128))
icons.append(ImageIO.read(url256))
icons.append(ImageIO.read(url512))
win = system.gui.getParentWindow(event)
parent = win
while parent is not None:
win = parent
parent = win.getParent()
win.setIconImages(icons)
It still remains the general coffee cup Icon.
Any suggestions?
EDIT:
If I launch the application with the Windows Launcher IT WORKS.
The TaskBar Icon change but now, the Desktop Icon created is the geral Ignition Icon and not the one selected in the project proprieties.
Thanks,
Federico.