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詳情 .