1

Growl には、他のアプリからの通知を受信するためのネットワーク プロトコルがあります。

jitsi プロジェクト (別名 SIP Communicator) はこれらの種類の通知を使用しているようですが、おそらく Google Summer of Code 2009 で開発された growl4j というライブラリを参照しているようです。

しかし、このライブラリはもう存在しないようです? growl4j.dev.java.net に関連するいくつかの痕跡が Google で見つかりましたが、サイトはもう存在しません。

理由はありますか?

4

2 に答える 2

4

以下は、いくつかの Growl Java ライブラリへのリンクです。

http://code.google.com/p/jgntp/

http://sourceforge.net/projects/libgrowl/

これらは両方とも新しい GNTP プロトコルに基づいているため、Growl の最新バージョン (Mac App Store の 1.3+) で動作します。

于 2012-01-11T17:38:50.440 に答える
2

ブライアンに同意します。引用された 2 つのライブラリは、最新のうなり声のバージョンで動作すると私が思う唯一のものです。

例を次に示します: http://blog.growlforwindows.com/2009/04/new-java-growlgntp-library-available.html

簡単です:

// connect to Growl on the given host
GrowlConnector growl = new GrowlConnector("hostname");

// give your application a name and icon (optionally)
Application downloadApp = new Application("Downloader", "http://example.com/icon.png");

// create reusable notification types, their names are used in the Growl settings
NotificationType downloadStarted = new NotificationType("Download started",     "c:\started.png");
NotificationType downloadFinished = new NotificationType("Download finished",     "c:\finished.jpg");
NotificationType[] notificationTypes = new NotificationType[] { downloadStarted,   downloadFinished };

// now register the application in growl
growl.register(downloadApp, notificationTypes);

// create a notification with specific title and message
Notification ubuntuDownload = new Notification(downloadApp, downloadStarted, "Ubuntu  9.4", "654 MB");

// finally send the notification
growl.notify(ubuntuDownload);
于 2012-09-21T08:53:40.710 に答える