I created a Java application with tray icon. I am using a transparent png
image. However, the rendered icon is very ugly on all platforms, including Windows 7 and Linux.
Are there any good practices for creating tray icons (e.g. format, size, 开发者_Python百科etc.)?
In windows, you should use the .ico
format. It may contain multiple icons with different sizes.
In Linux I guess png
is the standard. Just don't try to scale it. Pre-create multiple versions of the same image with different sizes.
There is no "known solution" for this problem as far as i know. You should switch your transparent icons to square ones. You can check this question for deeper information;
java TrayIcon using image with transparent background
精彩评论