Package javax.swing

Examples of javax.swing.JMenu.addSeparator()


    menu.setMnemonic(KeyEvent.VK_D);
    menuBar.add(menu);

    menu.add(new JMenuItem(new NewFrameAction()));
    menu.add(new JMenuItem(getPreviewAction()));
    menu.addSeparator();
    menu.add(new JMenuItem(getCloseAction()));

    final JMenu helpmenu = new JMenu("Help");
    helpmenu.setMnemonic(KeyEvent.VK_H);
    helpmenu.add(new JMenuItem(getAboutAction()));
View Full Code Here


    final JMenuItem previewItem = new JMenuItem(getPreviewAction());
    final JMenuItem exitItem = new JMenuItem(getCloseAction());

    fileMenu.add(previewItem);
    fileMenu.addSeparator();
    fileMenu.add(exitItem);
    mb.add(fileMenu);

    // then the help menu
    final JMenu helpMenu = createJMenu("menu.help");
View Full Code Here

       
        xbayaMenuItem.addSeparator();
        JMenu importMenu = new JMenu("Import");
          importMenu.add(importWorkflowItemFromFileSystem);
          importMenu.add(importWorkflowItemFromRegistry);
          importMenu.addSeparator();
          importMenu.add(urlItem)
         
        JMenu exportMenu = new JMenu("Export");
          exportMenu.add(saveWorkflowtoRegistryItem);
          exportMenu.addSeparator();
View Full Code Here

          importMenu.addSeparator();
          importMenu.add(urlItem)
         
        JMenu exportMenu = new JMenu("Export");
          exportMenu.add(saveWorkflowtoRegistryItem);
          exportMenu.addSeparator();
          exportMenu.add(exportJythonItem);
          exportMenu.add(exportBpelItem);
          exportMenu.add(exportODEScriptsItem);
          exportMenu.addSeparator();
          exportMenu.add(saveImageItem);
View Full Code Here

          exportMenu.add(saveWorkflowtoRegistryItem);
          exportMenu.addSeparator();
          exportMenu.add(exportJythonItem);
          exportMenu.add(exportBpelItem);
          exportMenu.add(exportODEScriptsItem);
          exportMenu.addSeparator();
          exportMenu.add(saveImageItem);
       
        xbayaMenuItem.add(importMenu);
        xbayaMenuItem.add(exportMenu);
       
View Full Code Here

    m_setdown_mi = new JMenuItem("Set Down");
    m_setdown_mi.addActionListener(m_handler);
    _server_menu.add(m_setdown_mi);

    _server_menu.addSeparator();

    m_refresh_mi = new JMenuItem("Refresh");
    m_refresh_mi.addActionListener(m_handler);
    _server_menu.add(m_refresh_mi);
View Full Code Here

          prd.displayStats(MainFrame.this.lastRunProcessTrace, 1, "Process trace");
        }
      }
    });
    runMenu.add(this.showPerfReportItem);
    runMenu.addSeparator();
    this.recentDescFileMenu = new JMenu("Recently used ...");
    this.recentDescFileMenu.setMnemonic(KeyEvent.VK_U);
    runMenu.add(this.recentDescFileMenu);
    runMenu.addSeparator();
    createLangMenu();
View Full Code Here

    runMenu.add(this.showPerfReportItem);
    runMenu.addSeparator();
    this.recentDescFileMenu = new JMenu("Recently used ...");
    this.recentDescFileMenu.setMnemonic(KeyEvent.VK_U);
    runMenu.add(this.recentDescFileMenu);
    runMenu.addSeparator();
    createLangMenu();
    runMenu.add(this.langMenu);
    this.langMenu.setMnemonic(KeyEvent.VK_L);
    // runMenu.addSeparator();
    JMenuItem dataPathItem = new JMenuItem("Set data path");
View Full Code Here

    this.langMenu.setMnemonic(KeyEvent.VK_L);
    // runMenu.addSeparator();
    JMenuItem dataPathItem = new JMenuItem("Set data path");
    dataPathItem.addActionListener(new SetDataPathHandler(this));
    dataPathItem.setMnemonic(KeyEvent.VK_S);
    runMenu.addSeparator();
    runMenu.add(dataPathItem);
    return runMenu;
  }

  private JMenu createToolsMenu() {
View Full Code Here

    manualItem.addActionListener(new ManualHandler(this));
    helpMenu.add(manualItem);
    JMenuItem helpInfoItem = new JMenuItem("Help", KeyEvent.VK_H);
    helpInfoItem.addActionListener(new HelpHandler(this));
    helpMenu.add(helpInfoItem);
    helpMenu.addSeparator();
    JMenuItem aboutItem = new JMenuItem("About CVD", KeyEvent.VK_A);
    aboutItem.addActionListener(new AboutHandler(this));
    helpMenu.add(aboutItem);
    JMenuItem aboutUimaItem = new JMenuItem("About UIMA", KeyEvent.VK_U);
    aboutUimaItem.addActionListener(new AboutUimaHandler(this));
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.