• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Nice Round Title Bar Icons?

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I suspect that the answer's going to be more complicated than I was hoping for, but...

For an application I'm writing, I need (would like) to use a round logo as the icon in the title bar and taskbar (on Windows), but keep things platform independent. When I use a 16x16 PNG with transparency and set it with Frame.setIconImage(), the image is very pixelated, and not nice, which my graphic designer says is because it's not being displayed as a 32-bit image, but instead as 256 colour (so the transparency is either on or off, not variable - as far as I can understand). In graphics applications, the image looks fine. Also, if I use Alt-Tab, the image is enlarged and even more pixelated and nasty.

So, my question is - can I use some other format (like ICO on Windows) to give the Frame an image with multiple sizes, and/or make it use varying transparency to draw the circle properly? It's obviously possible, because plenty of other applications use it - perhaps I need to use SWT or something? (I'd prefer to keep it as Swing-based as possible, though).

Any help or suggestions gratefully received!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic