Package javax.swing

Examples of javax.swing.JMenu.addSeparator()


            am.setup(row, column);
            if (lastManipulatorType == null) {
                lastManipulatorType = am.getType();
            }
            if (lastManipulatorType != am.getType()) {
                subMenu.addSeparator();
            }
            lastManipulatorType = am.getType();
            subMenu.add(PopupMenuUtils.createMenuItemFromManipulator(am));
        }
        if(subMenu.getMenuComponentCount()==0){
View Full Code Here


                                m_imgView.setZoom(.0625f);
                            }
                        });
                        sizeMenu.add(radioMenuItem);

                        sizeMenu.addSeparator();

                        menuItem = new JStatusMenuItem(Main.getString("menu_img_size_down"), Main.getString("statusbar_menuimg_size_down_help"), m_statusBar);
                        menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT, InputEvent.CTRL_DOWN_MASK));
                        menuItem.addActionListener(new ActionListener()
                        {
View Full Code Here

                ((GraphContextMenuItem)subItem).setup(graph, nodes);
                if (lastItemType == null) {
                    lastItemType = subItem.getType();
                }
                if (lastItemType != subItem.getType()) {
                    subMenu.addSeparator();
                }
                lastItemType = subItem.getType();
                if (subItem.isAvailable()) {
                    subMenu.add(createMenuItemFromGraphContextMenuItem((GraphContextMenuItem)subItem, graph, nodes));
                }
View Full Code Here

      handleSetServerPort();
    }
    });
    menu.add( copyServerAddressItem );
   
    menu.addSeparator();

    item = new JMenuItem("Start Custom Template");
    item.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
        handleCreateCustomTemplate();
View Full Code Here

      initAndAddDebugView(subMenu, VK_W, true,
          new WorldObjectView(renderOptions));
      initAndAddDebugView(subMenu, -1, true,
          new SkyboxView());
     
      subMenu.addSeparator();
     
      initAndAddDebugView(subMenu, -1, false,
          new TerrainBoundaryAABBDebugView());
      initAndAddDebugView(subMenu, VK_L, false,
          new ClearingDebugView());
View Full Code Here

                    gcDocument.setShowModelPanel(menuItemShowDataPanel.getState());
                }
            }
        });
        viewMenu.add(menuItemShowDataPanel);
        viewMenu.addSeparator();
        gcLineMenuItems.put(GCPreferences.SHOW_DATA_PANEL, menuItemShowDataPanel);

        menuItemShowDateStamp = new JCheckBoxMenuItem(LocalisationHelper.getString("main_frame_menuitem_show_data_panel"), true);
        menuItemShowDateStamp.setMnemonic(LocalisationHelper.getString("main_frame_menuitem_mnemonic_show_data_panel").charAt(0));
        menuItemShowDateStamp.setIcon(createEmptyImageIcon(20, 20));
View Full Code Here

                }
            }
        });
        menuItemAntiAlias.setSelected(false);
        viewMenu.add(menuItemAntiAlias);
        viewMenu.addSeparator();
        gcLineMenuItems.put(GCPreferences.ANTI_ALIAS, menuItemAntiAlias);

        menuItemFullGCLines = new JCheckBoxMenuItem(LocalisationHelper.getString("main_frame_menuitem_full_gc_lines"), true);
        menuItemFullGCLines.setMnemonic(LocalisationHelper.getString("main_frame_menuitem_mnemonic_full_gc_lines").charAt(0));
        menuItemFullGCLines.setToolTipText(LocalisationHelper.getString("main_frame_menuitem_hint_full_gc_lines"));
View Full Code Here

        menuItemConcurrentGcBeginEnd.addActionListener(viewMenuActionListener);
        viewMenu.add(menuItemConcurrentGcBeginEnd);
        gcLineMenuItems.put(GCPreferences.CONCURRENT_COLLECTION_BEGIN_END, menuItemConcurrentGcBeginEnd);

        if (OSXSupport.hasOSXFullScreenSupport()) {
            viewMenu.addSeparator();
            viewMenu.add(new JMenuItem(osxFullScreenAction));
        }
       
        windowMenu = new JMenu(LocalisationHelper.getString("main_frame_menu_window"));
        windowMenu.setMnemonic(LocalisationHelper.getString("main_frame_menu_mnemonic_window").charAt(0));
View Full Code Here

      tmp.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          setup.broadcast(new SocketRequest());
        }
      });
      file.addSeparator();
      if (setup.getComponents().get("Terminal") != null) {
        file.add(tmp = new JMenuItem("Print"));
        tmp.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, KeyEvent.CTRL_MASK));
        tmp.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
View Full Code Here

              ((JComponent) setup.getComponents().get("Terminal"))
                      .print(printJob.getGraphics());
              printJob.end();
          }
        });
        file.addSeparator();
      }
      file.add(tmp = new JMenuItem("Exit"));
      tmp.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          frame.dispose();
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.