Skip to content

Instantly share code, notes, and snippets.

@chamerling
Created August 29, 2011 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chamerling/1178562 to your computer and use it in GitHub Desktop.
Save chamerling/1178562 to your computer and use it in GitHub Desktop.
/**
*
*/
package org.chamerling.javagrowl.app;
import org.chamerling.javagrowl.Growl;
import org.chamerling.javagrowl.GrowlNetwork;
/**
* @author chamerling
*
*/
public class Main {
public static void main(String[] args) {
// will register only if needed but returns a Growl instance in all cases...
Growl g = GrowlNetwork.register("JavaGrowlApp", "YOURPASSWORD");
g.notify("JavaGrowlApp", "The title", "This is the notification message...", "YOURPASSWORD");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment