How do I know what size icon to use for an application on the system tray?

John Zukowski

If you don't want to size the icon yourself, you can call setImageAutoSize() with a value of true for the TrayIcon. By default, the property is false. When true, the icon will be automatically resized to fit on the system tray.