Package net.bnubot.bot.gui.notifications

Examples of net.bnubot.bot.gui.notifications.Growl


    long timeNow = System.currentTimeMillis();
    if(timeNow - lastSystemTrayTime < 1000)
      return;
    lastSystemTrayTime = timeNow;

    Growl growl = GuiDesktop.getGrowl();
    if(growl != null) {
      try {
        growl.notifyGrowlOf(gt, headline, text);
      } catch (Exception e) {
        Out.exception(e);
      }
    } else {
      TrayIcon tray = GuiDesktop.getTray();
View Full Code Here


    if((tray != null) || (growl != null) || !GlobalSettings.trayIconMode.enableTray())
      return;

    try {
      if(OperatingSystem.userOS == OperatingSystem.OSX)
        growl = new Growl("BNU-Bot", "Contents/Resources/Icon.icns");
    } catch(Exception ex) {
      Out.exception(ex);
      Out.error(GuiEventHandler.class, "Growl is not supported");
      GlobalSettings.trayIconMode = TrayIconMode.DISABLED;
    }
View Full Code Here

TOP

Related Classes of net.bnubot.bot.gui.notifications.Growl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.