The System Tray Icon example shows how to add an icon to a desktop environment's system tray with a menu and popup messages.