Java Software Platform J2SE6 (Mustang) Enables System Tray / Taskbar Plate-forme logicielle Java J2SE6 (Mustang) permet à la barre d'état système / tâches
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. Plate-forme Java 2 Standard Edition version 6,0 (Mustang) vous permet d'accéder à la barre d'état système au moyen de deux classes dans le paquet java.awt: SystemTray et TrayIcon. 
These classes give you the ability to add graphics, popup menus, and floating tip functionality to the system tray. Ces classes vous donner la possibilité d'ajouter des graphiques, les menus popup, et flottant pointe fonctionnalité à la barre d'état système. If approved by the JSR 270 Expert Group you can expect to find this feature in the final version of Mustang. S'il est approuvé par la JSR 270 du Groupe d'experts, on peut s'attendre à trouver cette fonctionnalité dans la version finale de Mustang. Approve it already! Approuver déjà!
The java.awt.SystemTray class represents the system tray for a desktop. Le java.awt.SystemTray classe représente la barre d'état système pour un ordinateur de bureau. You can access the system tray by calling the static SystemTray.getSystemTray() method. Vous pouvez accéder à la barre d'état système en appelant la statique SystemTray.getSystemTray (). Before doing so, however, the application should always check if the system tray is supported using the static SystemTray.isSupported() method. Avant de ce faire, cependant, la demande doit toujours vérifier si la barre d'état système est soutenu utilisant l'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. Si la barre d'état système n'est pas présent ou pris en charge sur cette plate-forme et l'application tente d'appeler getSystemTray () dans un tel cas, il lancera une Java.Lang.UnsupportedOperationException.
Read this article for more Lire cet article pour en savoir plus details détails .
Filed under Classé sous Headline News Headline News , How To Comment , Java Software Logiciel de Java , Tech Note Note technique | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |





November 27th, 2005 at 2:24 pm Novembre 27th, 2005 at 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. Une chose que je déteste à propos de Java est que je ne peux pas obtenir de l'événement en cliquant sur la barre de titre (je veux parler de fenêtre décorations), et quand je ouvrir un menu, comme je l'ai utilisé, je tiens à le fermer en cliquant sur un lieu sûr, à l'instar de barre de titre. and when I do this nothing happens, because no event is generated when I do that. et quand je le fais rien ne se passe, parce qu'aucun événement est généré lorsque je fais cela. Very annoying.. Très ennuyeux ..