Here is some code I used to get Windows Growling in Java. I haven't
played with this specifically for a while but I am pretty sure it
works - I plan to return to it soon. In the mean time I am happy to
take any questions...
<code>
class Gfw {
public static enum NType {
TRANSFERRED, GENERIC, STARTUP, COMPLETE
};
public static NotificationType downloadComplete, fileTransferred,
generic, startup;
private static Application application;
private boolean growlRunning;
public Gfw() {
initGrowlForWindows();
}
private void initGrowlForWindows() {
application = new Application("myApp");
File f = new File(".." + File.separator + "bin" + File.separator +
"insticon.png");
application.setIcon(f.getAbsolutePath());
downloadComplete = new NotificationType("COMPLETE", "Download
Complete");
fileTransferred = new NotificationType("TRANSFERRED", "File
Transferred");
generic = new NotificationType("GENERIC", "Generic Message");
startup = new NotificationType("STARTUP", "Startup Message");
int rc = growl.register(application, new NotificationType[]
{ generic, startup, fileTransferred, downloadComplete })
if (rc == 0) {
growlRunning = true;
Notification notification = new Notification(application,
startup, "Started", "myApp has Started", "STARTUP");
growl.notify(notification);
}
}
}
</code>
On Aug 6, 10:20 pm, Brian Dunnington <
briandunning...@gmail.com>
wrote: