Guest User

Untitled

a guest
Jan 23rd, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. /**
  2. *
  3. */
  4. package org.chamerling.javagrowl.app;
  5.  
  6. import org.chamerling.javagrowl.Growl;
  7. import org.chamerling.javagrowl.GrowlNetwork;
  8.  
  9. /**
  10. * @author chamerling
  11. *
  12. */
  13. public class Main {
  14.  
  15. public static void main(String[] args) {
  16. // will register only if needed but returns a Growl instance in all cases...
  17. Growl g = GrowlNetwork.register("JavaGrowlApp", "YOURPASSWORD");
  18. g.notify("JavaGrowlApp", "The title", "This is the notification message...", "YOURPASSWORD");
  19. }
  20. }
Add Comment
Please, Sign In to add comment