Java implementation of Windows system tray icon program 2004-02-17 Click: 89
WINDOWS system tray icon program Java implementation
What is a Windows system tray icon?
The Windows status bar is also known as the system tray, located on the right side of the taskbar. Many software runs at the system tray area, which acts as a flag running, and the user can control the application by using a small icon control program display / hide, and using the pop-up menu. This not only makes it easy for users, but also uses the system tray icon to better save resources in the Windows taskbar. This small icon is called a Windows system tray icon, such as the input method of the Windows system, the sound control icon, or the icon of the Software, MSN, MSN, Super Solver and other software.
Program implementation:
Can accept any 16x16-size JPG / GIF image file as a tray icon;
The prompt information is displayed when the mouse is moved to the tray icon;
Display / hide the program interface by clicking on the tray icon;
The program is not displayed in the task bar when the program is minimized;
Right-click on the tray icon pop-up program control menu;
Provide an interface for other mouse events of the tray, such as double-click;
Program operation configuration:
Windows JDK1.4 or JRE1.4 or above
Source code:
Download all (including C source code) (about 102KB)
statement:
This program is based on the program source code provided by http://jeans.studentenweb.org/java/trayicon/trayicon.html. No longer uses the pop-up menu provided by the VCL, but directly using Java's JPopUpMenu. Of course, if you need it, you can also change it into popupMenu; and the code provided relative to Jeans is more convenient, just a few statements can be done, TRAYICOTEST.JAVA is an example of use.
This program and code must not be used for commercial purposes.