Java Software Platform J2SE6 (Mustang) Enables System Tray / Taskbar Java軟件平台j2se6 (野馬) ,使系統托盤/任務欄
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 。 
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詳情 . 。
Filed under提起下 Headline News頭條新聞 , , How To如何 , , Java Software Java軟件 , , Tech Note技術說明 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |




November 27th, 2005 at 2:24 pm 2005年11月27日在下午2時24分
One thing I hate about Java is that I can not get the event of clicking on the title bar(I am talking about window decorations), and when I open a menu, as I used to, I want to close it by clicking on a safe place, like title bar.一件事,我恨約Java是,我不能讓事件點擊該標題欄(我所說的窗口裝飾) ,當我打開一個菜單,正如我用,我想關閉它,按一下1安全的地方,如標題欄。 and when I do this nothing happens, because no event is generated when I do that.當我這樣做沒有發生,因為沒有活動是產生的,當我這樣做。 Very annoying..很煩人..