Java 2 Platform Standard Edition 6.0 version (Mustang) lets you access the system tray through two classes in the java.awt package: SystemTray and TrayIcon. Java 2平台标准版6.0版(野马)可让您存取系统托盘中通过两班,在java.awt包: systemtray和trayicon 。
系统托盘在Java
These classes give you the ability to add graphics, popup menus, and floating tip functionality to the system tray.这些课程让您能够添加图形,弹出菜单,和浮动提示的功能,系统托盘中。 If approved by the JSR 270 Expert Group you can expect to find this feature in the final version of Mustang.如果通过的JSR 270专家组,预计您可以找到此功能,在最后版本的野马。 Approve it already!它已经批准了!

The java.awt.SystemTray class represents the system tray for a desktop.该java.awt.systemtray阶层代表系统托盘中达成了桌面。 You can access the system tray by calling the static SystemTray.getSystemTray() method.您可以使用系统托盘中通过调用静态systemtray.getsystemtray ( )方法。 Before doing so, however, the application should always check if the system tray is supported using the static SystemTray.isSupported() method.在这样做之前,然而,应用应经常检查,如果系统托盘中是支持使用静态systemtray.issupported ( )方法。 If the system tray is not present or supported on this platform and the application attempts to call getSystemTray() in such a case, it will throw a java.lang.UnsupportedOperationException.如果系统托盘中是不存在或支持这个平台和应用程序尝试调用getsystemtray ( )在这种情况下,将丢一java.lang.unsupportedoperationexception 。

Read this article for more阅读此文章更多 details详情 .