Skip to main content

Jagged Desktop icon on Vista

2 replies [Last post]
davidson1
Offline
Joined: 2003-06-25

I'm working on a cross platform (Mac and Windows) application deployed via Java Web Start. We have some really high quality desktop icons that we want to use as the desktop shortcut icon. A servlet re-writes the jnlp file based on the client platform and we can choose platform specific icons.

On the Mac we are using .icns files and it looks great. However, the Windows side is looking kind of jaggy. We have .ico files and .png files of various resolutions (the .ico has embedded 16x16, 32x32 and 48x48). However, it appears that Java Web Start will generate a poor quality 32x32 ico and use this as the desktop icon. The Vista desktop tries to upsample the 32x32 ico 48x48 and the result is a double dose of ugly.

I have tried using more explicit icon elements including kind, width and height attributes as outlined in the following link but I can't seem to get nice looking icons:

http://java.sun.com/javase/6/docs/technotes/guides/javaws/enhancements6....

Has anyone encountered this issue and do you have a solution? How do you prevent Java Web Start from generating poor quality ico files? Ideally, we just want JWS to use the icon that we delivered.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davidson1
Offline
Joined: 2003-06-25

This looks like a known issue:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6572829

... but a really low priority for the team.

davidson1
Offline
Joined: 2003-06-25

I should probably mention that we are using Java6u14 on the Windows platforms (Vista, Win7, 2K8)