Josef Cacek Josef Cacek Siemens IT Solutions and Services Siemens IT Solutions and Services Brno Brno Remote Notifications Remote Notifications Integrace desktopu a webu v Javě – jednoduše a bez závislostí! Integrace desktopu a webu v Javě – jednoduše a bez závislostí!
Jak pomocí jedné třídy vytvořit system tray notifikátor pro vzdálené použití (běží jako HTTP server).
Více na: https://github.com/kwart/Notifier
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Josef CacekJosef CacekSiemens IT Solutions and ServicesSiemens IT Solutions and Services
BrnoBrno
Remote NotificationsRemote NotificationsIntegrace desktopu a webu v Javě – jednoduše a bez závislostí!Integrace desktopu a webu v Javě – jednoduše a bez závislostí!
TrayIcon trayIcon = new TrayIcon(img, "My own tooltip", popup); trayIcon.setImageAutoSize(true); //trayIcon.addMouseListener(...); //The MOUSE_ENTERED and MOUSE_EXITED mouse events are not supported.
SystemTray.getSystemTray().add(trayIcon); //...
trayIcon.displayMessage("Title", "I like it.", TrayIcon.MessageType.INFO);}
Zdrojové kódy ke stažení– https://github.com/kwart/Notifierhttps://github.com/kwart/Notifier
API dokumentace– System TraySystem Tray
http://download.oracle.com/javase/6/docs/api/java/awt/SystemTray.htmlhttp://download.oracle.com/javase/6/docs/api/java/awt/SystemTray.html– Windows SoundsWindows Sounds
http://download.oracle.com/javase/1.4.2/docs/guide/swing/1.4/w2k_props.htmlhttp://download.oracle.com/javase/1.4.2/docs/guide/swing/1.4/w2k_props.html– HTTP serverHTTP server