3

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, etc.)?

klenwell
  • 6,978
  • 4
  • 45
  • 84
msenhaji
  • 31
  • 1
  • 2

2 Answers2

2

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.

Universal Electricity
  • 775
  • 1
  • 12
  • 26
Quamis
  • 10,924
  • 12
  • 50
  • 66
1

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

Community
  • 1
  • 1
Muhammet Can
  • 1,304
  • 2
  • 16
  • 30