Examples of TrayIcon


Examples of java.awt.TrayIcon


            // load icon image
            try {
                Image image = ImageIO.read(SystrayListener.class.getResource("systray.png"));
                icon = new TrayIcon(image,"Apache Marmotta",popup);
                icon.setImageAutoSize(true);
                tray.add(icon);

            } catch (IOException e) {
                log.error("SYSTRAY: could not load the logo for system tray",e);
View Full Code Here

Examples of java.awt.TrayIcon

        trayMenu.add(trayMenuAutorip);
        trayMenu.addSeparator();
        trayMenu.add(trayMenuExit);
        try {
            mainIcon = ImageIO.read(getClass().getClassLoader().getResource("icon.png"));
            trayIcon = new TrayIcon(mainIcon);
            trayIcon.setToolTip(mainFrame.getTitle());
            trayIcon.setImageAutoSize(true);
            trayIcon.setPopupMenu(trayMenu);
            SystemTray.getSystemTray().add(trayIcon);
            trayIcon.addMouseListener(new MouseAdapter() {
View Full Code Here

Examples of net.java.sip.communicator.impl.osdependent.TrayIcon

         * to online.
         */
        currentIcon = isMac ? logoIcon : logoIconOffline;

        trayIcon
            = new TrayIcon(
                    currentIcon,
                    Resources.getApplicationString(
                            "service.gui.APPLICATION_NAME"),
                    menu);
        trayIcon.setIconAutoSize(true);
View Full Code Here

Examples of net.java.sip.communicator.impl.osdependent.TrayIcon

         * to online.
         */
        currentIcon = isMac ? logoIcon : logoIconOffline;

        trayIcon
            = new TrayIcon(
                    currentIcon,
                    Resources.getApplicationString(
                            "service.gui.APPLICATION_NAME"),
                    menu);
        trayIcon.setIconAutoSize(true);
View Full Code Here

Examples of net.laubenberger.bogatyr.view.swing.TrayIcon

    this.iconLogo = iconLogo;

    moduleDb = new ModuleDbImpl(DB_DRIVER, DB_URL + dirDB.getAbsolutePath() + HelperIO.FILE_SEPARATOR
        + moduleConfig.getUUID() + FileType.DB.getExtension(), DB_USER, DB_PASSWORD);
    owner = new Frame(moduleConfig.getName(), iconLogo.getIcon());
    trayIcon = new TrayIcon(iconLogo.getIcon(), moduleConfig.getName() + HelperString.SPACE
        + moduleConfig.getVersion(), popup);

    moduleConfig.getLocalizer().addListener(this);

    setModuleEnabled(null == moduleData.getString(KEY_MODULE_ENABLED) ? true : moduleData
View Full Code Here

Examples of net.laubenberger.bogatyr.view.swing.TrayIcon

    data = controller.getData();
    property = controller.getModel().getProperty();
    localizer = controller.getModel().getLocalizer();

    owner = new Frame(controller.getModel().getName(), Icon.LOGO.getIcon());
    trayIcon = new TrayIcon(Icon.LOGO.getIcon(), controller.getModel().getName() + HelperString.SPACE
        + controller.getModel().getVersion(), popup);
   
    dialogHelp = new DialogHelp(this);
    dialogAbout = new DialogAbout(this);
    dialogTask = new DialogTask(this);
View Full Code Here

Examples of org.jdesktop.jdic.tray.TrayIcon

    private final TrayIcon _trayIcon;
    private Server _server = null;

    public SysTray() {
        SystemTray tray = SystemTray.getDefaultSystemTray();
        TrayIcon icon = new TrayIcon(_icons[NORMAL_DUKE], TITLE, createMenu());
        icon.setIconAutoSize(true);
        tray.addTrayIcon(icon);
        this._trayIcon = icon;
    }
View Full Code Here

Examples of org.jdesktop.jdic.tray.TrayIcon

    // NOTE: The SystemTray must be created get before the TrayIcon is created.
    //       Otherwise a UnsatisfiedLinkError will raise on linux systems
    SystemTray tray = SystemTray.getDefaultSystemTray();
   
    mTrayIcon = new TrayIcon(icon, "regain", menu);
    mTrayIcon.setIconAutoSize(true);
    mTrayIcon.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        DesktopToolkit.openPageInBrowser("searchinput.jsp");
      }
View Full Code Here

Examples of org.jdesktop.jdic.tray.TrayIcon

    try {
      Thread.sleep( 500 );
    }
    catch( Exception ex ) { }

        ti = new TrayIcon( i, "TrayIcon", statusMenu );
        ti.setToolTip( "JBother" );
        ti.setCaption( "JBother" );
        ti.addActionListener(
            new ActionListener()
            {
View Full Code Here

Examples of org.jdesktop.jdic.tray.TrayIcon

        stopMenuItem.addActionListener(actionListener);
        startMenuItem.addActionListener(actionListener);
        showMenuItem.addActionListener(actionListener);

        // Set the system tray icon with the menu
        trayIcon = new TrayIcon(offIcon, appName, menu);
        trayIcon.setIconAutoSize(true);
        trayIcon.addActionListener(actionListener);

        if (tray != null) {
            tray.addTrayIcon(trayIcon);
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.