what is the Windows System Tray Icon? the Windows status bar is also called the system tray, which is located on the right of the taskbar. A small icon appears in the system tray area when many software programs run. It serves as a sign for running the program. You can use a small icon to control the display/hide of programs, and use the pop-up menu to control the application. This not only facilitates users, but also saves Windows taskbar resources by using the system tray icon. This small icon is called a Windows system tray icon, for example, a Windows system input method, a sound control icon, or a software Icon such as Kingsoft, MSN, and super decoding. program implementation functions: it can accept JPG/GIF image files of 16x16 sizes as Tray icons; A prompt is displayed when you move the cursor over the tray icon. click the tray icon to display/hide the program interface; when the program is minimized, it is not displayed in the task bar. right-click the tray icon to bring up the program control menu. it provides interfaces for other mouse events of the tray, such as double-click. program running Configuration: Windows + jdk1.4 or jre1.4 or later Program Source Code : download all (including c ++ Source Code) (about KB) statement: the program is developed based on http://jeans.studentenweb.org/java/trayicon/trayicon.html#< SPAN class = "wp_keywordlink"> Code . instead of using the pop-up menu provided by VCL, Java's jpopupmenu is used directly. of course, you can also change it to popupmenu if needed, and it is much easier to use than the Code provided by jeans. You only need a few statements to complete it, trayicontest. java is an example. this program and Code cannot be used for commercial purposes. |