Package java.awt

Examples of java.awt.MenuItem.addActionListener()


            }
        });

        // #ifdef DEBUG
        MenuItem console = new MenuItem(Messages.getString("GUI.menu.debugConsole")); //$NON-NLS-1$
        console.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                getConsole().show();
            }
        });
        // #endif
View Full Code Here


            }
        });
        // #endif

        MenuItem ports = new MenuItem(Messages.getString("GUI.menu.tunnelMonitor")); //$NON-NLS-1$
        ports.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                getPortMonitor().setVisible(!getPortMonitor().isVisible());
            }
        });
View Full Code Here

                getPortMonitor().setVisible(!getPortMonitor().isVisible());
            }
        });

        MenuItem exit = new MenuItem(Messages.getString("GUI.menu.exit")); //$NON-NLS-1$
        exit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                getAgent().disconnect();
            }
        });
View Full Code Here

     
      Menu menu = parentName == null ? file : (Menu) menuLookup.get(parentName);
        if(menu==null)
          return;
        MenuItem item = new MenuItem(action.getAction());
        item.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                action.actionPerformed();
            }
        });
        menu.add(item);
View Full Code Here

                else if (french)
                    label = "YaCy Recherche";
                else
                    label = "YaCy Search";
    menuItem = new MenuItem(label);
    menuItem.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        openBrowser("");
      }
    });
    menu.add(menuItem);
View Full Code Here

                else if (french)
                    label = "Comparer YaCy";
                else
                    label = "Compare YaCy";
    menuItem = new MenuItem(label);
    menuItem.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        openBrowser("compare_yacy.html");
      }
    });
    menu.add(menuItem);
View Full Code Here

                else if (french)
                    label = "Peer Administration";
                else
                    label = "Peer Administration";
    menuItem = new MenuItem(label);
    menuItem.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        openBrowser("Status.html");
      }
    });
    menu.add(menuItem);
View Full Code Here

                else if(french)
                    label = "Arrêt YaCy";
                else
                    label = "Shutdown YaCy";
    menuItem = new MenuItem(label);
    menuItem.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        sb.terminate("shutdown from tray");
      }
    });
    menu.add(menuItem);
View Full Code Here

    // I bet this isn't used anymore.
    public MenuItem getFontMenuItem() {
 
  MenuItem itema = new MenuItem("Gene Font...");
  itema.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent actionEvent)
    {
        FontSelector fontSelector = new FontSelector
      (TextView.this, "Select Fonts for Gene Info");
        fontSelector.showDialog(viewFrame);
View Full Code Here

    });
    menu.add(psItem);
    */
   
    MenuItem bitmapItem = new MenuItem("Export to Image...");
    bitmapItem.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent actionEvent) {
       
        MapContainer initXmap, initYmap;
        if ((getArraySelection().getNSelectedIndexes() != 0) || (getGeneSelection().getNSelectedIndexes() != 0)){
          initXmap = getZoomXmap();
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.