Package java.awt

Examples of java.awt.TrayIcon.displayMessage()


      public void windowIconified(WindowEvent e) {

        try {
          tray.add(trayIcon);
          frm.setVisible(false);
          trayIcon.displayMessage("Dot Project", "You can access Dot Project by double clicking this icon", TrayIcon.MessageType.INFO);
        } catch (AWTException ex) {
          System.err.println("TrayIcon could not be added.");
        }
      }
    });
View Full Code Here


        Out.exception(e);
      }
    } else {
      TrayIcon tray = GuiDesktop.getTray();
      if(tray != null)
        tray.displayMessage(headline, text, TrayIcon.MessageType.INFO);
    }
  }

  @Override
  public void channelJoin(Connection source, BNetUser user) {
View Full Code Here

      addWindowListener(new WindowAdapter() {
        private boolean first = true;
        public void windowClosing(WindowEvent e) {
          MainWindow.this.setVisible(false);
          if (first) {
            icon.displayMessage(
                "JDCP Worker",
                "JDCP Worker is still running.  To exit, right click this icon and click 'exit'.",
                MessageType.INFO);
            first = false;
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.