How can I load a image for the main JFrame and another image for the ALT-TAB viewer (on changing between apps)?
That does not really answer the question, does it?
A problem is, that the app switcher scales the icon to a larger size, which looks bad.
I think you cannot provide two different images in pure Java though.
> A problem is, that the app switcher scales the icon
> to a larger size, which looks bad.
> I think you cannot provide two different images in
> pure Java though.
If you call JFrame.setIconImage(..) with an image size that looks fine in the app switcher it gets scaled down for use else where (such as the title bar and window list). This works for me on both Windows and linux but I haven't tried it on the mac.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.