简体   繁体   中英

Changing the background color of a JFrame icon on the windows taskbar

I have a JFrame application within which I have invoked setIconImage() which changes the icon image (teapot image) which displays on the windows bar.

How do I change the background color, that appears when you hover over the image on the windows bar? Currently the background color that is displayed is light blue.

I am positive that it can be done, as your typical big programs have colors which tie in with their design, eclipse for instance uses purple.

You cannot change the background color of the taskbar icon. The color is determined by windows from the dominant color of your icon. If you want another background color then you will have to change your icon.

This feature in windows 7 is called Color Hot-track .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM