更改 Windows 任务栏上 JFrame 图标的背景颜色
我有一个 JFrame 应用程序,在其中调用了 setIconImage() ,它更改了窗口栏上显示的图标图像(茶壶图像)。
如何更改将鼠标悬停在窗口栏上的图像上时出现的背景颜色?当前显示的背景颜色为浅蓝色。
我确信这是可以做到的,因为典型的大型程序具有与其设计相结合的颜色,例如 Eclipse 使用紫色。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法更改任务栏图标的背景颜色。颜色由窗口根据图标的主色确定。如果您想要其他背景颜色,则必须更改图标。
Windows 7 中的此功能称为 颜色热轨。
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.