Package javax.swing

Examples of javax.swing.JMenu.addSeparator()


            public void actionPerformed(ActionEvent e) {
                new_();
            }
        });
        file.add(new_);
        file.addSeparator();
        JMenuItem open = new JMenuItem("Open...");
        open.setMnemonic('O');
        open.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                open();
View Full Code Here


            public void actionPerformed(ActionEvent e) {
                saveAs();
            }
        });
        file.add(saveAs);
        file.addSeparator();
        JMenuItem exit = new JMenuItem("Exit");
        exit.setMnemonic('x');
        exit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exit();
View Full Code Here

                    JOptionPane.showMessageDialog(frame, x.getMessage(), "Error selecting project directory",
                        JOptionPane.ERROR_MESSAGE);
                }
            }
        });
        file.addSeparator();
        JMenuItem exit = new JMenuItem("Exit");
        file.add(exit);
        exit.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

                }
            });
       

        file_menu.add(searchMenu);
        file_menu.addSeparator();
        file_menu.add(loggerMenu);
        file_menu.add(cyberMenu);
        file_menu.addSeparator();
        file_menu.add(checkIncompleteItem);
        file_menu.add(checkErrataItem);
View Full Code Here

        file_menu.add(searchMenu);
        file_menu.addSeparator();
        file_menu.add(loggerMenu);
        file_menu.add(cyberMenu);
        file_menu.addSeparator();
        file_menu.add(checkIncompleteItem);
        file_menu.add(checkErrataItem);
        //file_menu.addSeparator();
        //file_menu.add(clearSubscriptionItem);
        file_menu.addSeparator();
View Full Code Here

        file_menu.addSeparator();
        file_menu.add(checkIncompleteItem);
        file_menu.add(checkErrataItem);
        //file_menu.addSeparator();
        //file_menu.add(clearSubscriptionItem);
        file_menu.addSeparator();
        file_menu.add(exitItem);

        menuBar.add(file_menu);                  
        frame.setJMenuBar(menuBar);
View Full Code Here

    final SortAction sortAction = new SortAction();
    actionsMenu.add(sortAction);
    actionsMenu.add(new EditExpressionAction());
    actionsMenu.add(new ShowPropertiesAction());
    actionsMenu.add(new ShowModifiedAction());
    actionsMenu.addSeparator();
    actionsMenu.add(exitAction);

    final JMenuBar menuBar = new JMenuBar();
    menuBar.add(actionsMenu);
    setJMenuBar(menuBar);
View Full Code Here

      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
          morphMenu.addSeparator();
        }
      }
      else
      {
        grouping = currentGrouping;
View Full Code Here

      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
          menu.addSeparator();
        }
      }
      else
      {
        grouping = currentGrouping;
View Full Code Here

    });

    // create Operator menu and add components to it...
    final JMenu operatorMenu = new JMenu("Add");
    operatorMenu.add(addConnectionMI);
    operatorMenu.addSeparator();
    operatorMenu.add(opMI);
    operatorMenu.add(joMI);

    return operatorMenu;
  }
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.