Using PHP or JAVA script can I send a message aleret to my desktop without taking over the focus

Scott Johnston
Scott Johnston used Ask the Experts™
on
I am trying built online IM system using HTTP.  I am stuck on sending an alert to the workstation notifying the user that some is in need of help.  Can I send a alert like Outlook does, that does not take over the focus on the PC.
Please advise or give me suggestions
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Developer
Commented:
You can use the Java TrayIcon class.
Create a tray icon that displays baloons of notifications.

import java.awt.SystemTray;
import java.awt.TrayIcon;


...
Image img1=ImageIO.read(...some icon image stream..);
SystemTray.getSystemTray().add(icon);



To show the notification ballon:

TrayIcon.MessageType type = TrayIcon.MessageType.INFO;
icon.displayMessage("Title", "message to show", type);


For more examples search for Java TrayIcon



Scott JohnstonIT Technician

Author

Commented:
Perfect, This is exactly what we were looking for.
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial