Java Software Platform J2SE6 (Mustang) Enables System Tray / Taskbar

By Angsuman Chakraborty, Gaea News Network
Saturday, November 26, 2005

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.
System Tray in <b>Java</b>
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. Approve it already!

The java.awt.SystemTray class represents the system tray for a desktop. You can access the system tray by calling the static SystemTray.getSystemTray() method. Before doing so, however, the application should always check if the system tray is supported using the static SystemTray.isSupported() method. 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.

Read this article for more details.

Discussion
December 7, 2009: 2:47 am

what is ocx file? Is it possible to use ocx file in java? Please tell me the steps of doing so.

November 27, 2005: 2:24 pm

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. and when I do this nothing happens, because no event is generated when I do that. Very annoying..

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :