Package java.awt

Examples of java.awt.MenuItem.addActionListener()


    }
   
    // File>Open RTP Session
    {
      final MenuItem menuItemReceiveRTP = new MenuItem("Open RTP Session...");
      menuItemReceiveRTP.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              playerPanel.onReceiveRTP();
            }
          }
View Full Code Here


    }
   
    // File>Capture
    {
      final MenuItem menuItemOpenCaptureDevice = new MenuItem("Capture...");
      menuItemOpenCaptureDevice.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              playerPanel.onOpenCaptureDevice();
            }
          }
View Full Code Here

    // TODO: export

    // File>Transmit RTP
    {
      final MenuItem menuItemTransmitRTP = new MenuItem("Transmit RTP...");
      menuItemTransmitRTP.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              playerPanel.onTransmitRTP();
            }
          }
View Full Code Here

    }

    // File>Transcode
    {
      final MenuItem menuItemTranscode = new MenuItem("Transcode...");
      menuItemTranscode.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              playerPanel.onTranscode();
            }
          }
View Full Code Here

    menuFile.addSeparator();
   
    // File>Registry Editor
    {
      final MenuItem menuItemRegistryEditor = new MenuItem("Registry Editor...");
      menuItemRegistryEditor.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              onOpenRegistryEditor();
            }
          }
View Full Code Here

    }
   
    // File>Exit
    {
      final MenuItem menuItemExit = new MenuItem("Exit");
      menuItemExit.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              onExit();
            }
          }
View Full Code Here

    menuBar.add(menuHelp);
   
    // Help>About
    {
      final MenuItem menuItemHelpAbout = new MenuItem("About...");
      menuItemHelpAbout.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              AboutPanel.run(frame);
            }
          }
View Full Code Here

  MenuItem item;
  MenuBar mb = new MenuBar();
  // File Menu
  Menu mnFile = new Menu("File");
  mnFile.add(item = new MenuItem("Open"));
  item.addActionListener(al);
  mnFile.add(item = new MenuItem("Exit"));
  item.addActionListener(al);

  // Options Menu 
  Menu mnOptions = new Menu("Options");
View Full Code Here

  // File Menu
  Menu mnFile = new Menu("File");
  mnFile.add(item = new MenuItem("Open"));
  item.addActionListener(al);
  mnFile.add(item = new MenuItem("Exit"));
  item.addActionListener(al);

  // Options Menu 
  Menu mnOptions = new Menu("Options");
  cbAutoLoop = new CheckboxMenuItem("Auto replay");
  cbAutoLoop.setState(true);
View Full Code Here

     */
    public void init(Agent agent) {
        super.init(agent);

        MenuItem open = new MenuItem(Messages.getString("GUI.menu.openBrowser")); //$NON-NLS-1$
        open.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                openBrowser(null);
            }
        });

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.