Package javax.swing

Examples of javax.swing.JMenu.addSeparator()


    generatorsMenu.setIcon(IconUtils.createImageIcon(ICON_CLASS_PATH + "app.gif"));
    generatorsMenu.setMnemonic('G');

    generatorsMenu.add(buildMetadataGeneratorMenuItem());
    generatorsMenu.add(buildQueryGeneratorMenuItem());
    generatorsMenu.addSeparator();
    generatorsMenu.add(buildExitMenuItem());
   
    return generatorsMenu;
  }
 
View Full Code Here


   
    viewMenu.add(buildMenuBarCheckBoxMenuItem());
    viewMenu.add(buildToolBarCheckBoxMenuItem());
    viewMenu.add(buildStatusBarCheckBoxMenuItem());
    viewMenu.add(buildWindowDecorationStyleCheckBoxMenuItem());
    viewMenu.addSeparator();
    viewMenu.add(buildFullScreenMenuItem());
    viewMenu.add(buildNormalScreenMenuItem());
    viewMenu.addSeparator();
    viewMenu.add(buildLookAndFeelMenu());
   
View Full Code Here

    viewMenu.add(buildStatusBarCheckBoxMenuItem());
    viewMenu.add(buildWindowDecorationStyleCheckBoxMenuItem());
    viewMenu.addSeparator();
    viewMenu.add(buildFullScreenMenuItem());
    viewMenu.add(buildNormalScreenMenuItem());
    viewMenu.addSeparator();
    viewMenu.add(buildLookAndFeelMenu());
   
    return viewMenu;
  }
 
View Full Code Here

    helpMenu.setIcon(IconUtils.createImageIcon(ICON_CLASS_PATH + "info.png"));
    helpMenu.setMnemonic('H');
   
    helpMenu.add(buildHelpMenuItem());
    helpMenu.add(buildLinkMenuItem());
    helpMenu.addSeparator();
    helpMenu.add(buildUpdateMenuItem());
    helpMenu.addSeparator();
    helpMenu.add(buildAboutMenuItem());
   
    return helpMenu;
View Full Code Here

   
    helpMenu.add(buildHelpMenuItem());
    helpMenu.add(buildLinkMenuItem());
    helpMenu.addSeparator();
    helpMenu.add(buildUpdateMenuItem());
    helpMenu.addSeparator();
    helpMenu.add(buildAboutMenuItem());
   
    return helpMenu;
  }
 
View Full Code Here

        }
    );
    mi1.setMnemonic('A');
    menu.add(mi1);

    menu.addSeparator();
    JMenuItem mi2= new JMenuItem(" Exit ");
    mi2.addActionListener(
        new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                terminate();
View Full Code Here

                public void doit() {
                    reload();
                }
            });
        }
        menu.addSeparator();
        menu.add(new Command(translator.getString("Menu.Exit"), KeyEvent.VK_X) {
            public void doit() {
                dispose();
            }
        });
View Full Code Here

        menu.add(new Command(translator.getString("Menu.Go.to.Page"), KeyEvent.VK_G) {
            public void doit() {
                showGoToPageDialog();
            }
        });
        menu.addSeparator();
        JMenu subMenu = new JMenu(translator.getString("Menu.Zoom"));
        subMenu.setMnemonic(KeyEvent.VK_Z);
        subMenu.add(new Command("25%", 0) {
            public void doit() {
                setScale(25.0);
View Full Code Here

      menu = new JMenu("Help");
      {
        JMenuItem menuItem = new JMenuItem("Complain about scrollbars");
        menu.add(menuItem);

        menu.addSeparator();

        menuItem = new JMenuItem("Check for updates");
        menuItem.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent event) {
View Full Code Here

    final JMenu fileMenu = new JMenu(Messages.getString("StyleDefinitionEditorDialog.Menu.File.Label"));
    fileMenu.setMnemonic(Messages.getMnemonic("StyleDefinitionEditorDialog.Menu.File.Mnemonic"));
    fileMenu.add(new OpenAction(editorContext));
    fileMenu.add(new SaveAction(editorContext));
    fileMenu.add(new SaveAsAction(editorContext));
    fileMenu.addSeparator();
    fileMenu.add(new CloseAction());

    standaloneMenuBar = new JMenuBar();
    standaloneMenuBar.add(fileMenu);
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.