Package org.jdesktop.jdic.tray

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


    // 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

    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

        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

    addDir(Start.path);
    PluginsInfo.loadLibrary("jdic");
    if(System.getProperty("os.name").startsWith("Windows"))PluginsInfo.loadLibrary("jdic_win");
    else PluginsInfo.loadLibrary("jdic_stub");
   
    trayIcon = new TrayIcon(StatusIcons.getOfflineIcon(), "Jeti" + Start.OS2,makeMenu());
    trayIcon.setIconAutoSize(true);
    trayIcon.addActionListener(plugin);
    SystemTray.getDefaultSystemTray().addTrayIcon(trayIcon);
   
  }
View Full Code Here

      DebugLogger.logWarning( "The JNLP singleton service is not available" );
    }
       
    if ( trayIcon == null ) {
      SystemTray st = SystemTray.getDefaultSystemTray();
      trayIcon = new TrayIcon( (Icon)currentProject.getIcon( "xui_icon.png" ), currentProject.getStartupParam( "Title" ));
      trayIcon.addActionListener( this );
      st.addTrayIcon( trayIcon );
     
      JPopupMenu popup = new JPopupMenu();
      JMenuItem defaultItem = new JMenuItem( "Exit" );
View Full Code Here

TOP

Related Classes of org.jdesktop.jdic.tray.TrayIcon

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.