Package javax.swing

Examples of javax.swing.JSeparator$AccessibleJSeparator


    mCloseBt = new JButton(Localizer.getLocalization(Localizer.I18N_CANCEL));
    mCloseBt.addActionListener(this);

    builder.addButton(new JButton[] { mOKBt, mCloseBt });

    panel.add(new JSeparator(), cc.xyw(1, 19, 3));
    panel.add(builder.getPanel(), cc.xyw(1, 21, 3));
   
    pack();
    Settings.layoutWindow("channelConfig", this, new Dimension(420,350));
  }
View Full Code Here


      if (contextMenuIf.getId().compareTo(SeparatorMenuItem.SEPARATOR) == 0) {
        // avoid duplicate separators
        if (lastEntry == null
            || lastEntry.getId().compareTo(SeparatorMenuItem.SEPARATOR) != 0) {
          mFunctionGroup.add(Box.createRigidArea(new Dimension(0, 2)));
          mFunctionGroup.add(new JSeparator());
          mFunctionGroup.add(Box.createRigidArea(new Dimension(0, 2)));
          lastEntry = contextMenuIf;
        }
      } else if (contextMenuIf.getId().compareTo(ConfigMenuItem.CONFIG) == 0
          && mShowSettings) {
View Full Code Here

      menu.add(menuItem);
      if (channelFilterName != null && filterName.equals(channelFilterName)) {
        menuItem.setSelected(true);
      }
    }
    menu.add(new JSeparator());
    // new channel group
    JMenuItem menuItemAdd = createMenuItem("channelGroupNew",
        "Add channel group", null, true);
    menuItemAdd.addActionListener(new ActionListener() {
View Full Code Here

                /** CHANGED **/
                dialogPanel.add(createApplicationDescriptorComponent(), BorderLayout.CENTER);
                // Set the preferred size
                dialogPanel.setPreferredSize(new Dimension( 300, 200));
            }
            dialogPanel.add(new JSeparator(), BorderLayout.SOUTH);
            return dialogPanel;
        }
View Full Code Here

    Component c;

    if(ContextMenuSeparatorAction.getInstance().equals(menu.getAction())) {
      parent.add(Box.createRigidArea(new Dimension(0,2)));
      c = parent.add(new JSeparator());
      parent.add(Box.createRigidArea(new Dimension(0,2)));
    }
    else {
      c = parent.add(mAction);
    }
View Full Code Here

      setOpaque(false);
      setBorder(BorderFactory.createEmptyBorder());
      setAlignmentX(Component.CENTER_ALIGNMENT);

      if(BorderLayout.NORTH.equals(toolbarLocation)) {
        add(new JSeparator(SwingConstants.VERTICAL), new CellConstraints().xy(2,1));
      } else {
        add(new JSeparator(SwingConstants.HORIZONTAL), new CellConstraints().xy(1,2));
      }

      adjustSize();

      ToolBar.this.addContainerListener(this);
View Full Code Here

            gui.add(new JLabel("Filter"));
            gui.add(new JLabel(" By Value"));
            addToGUI(gui, new JTextField(10), "VALEUR");
            gui.add(new JLabel(" By Type"));
            addToGUI(gui, new JTextField(10), "TYPE");
            gui.add(new JSeparator());
            addToGUI(gui, new JButton("Open File"), "OPEN");
            addToGUI(gui, new JButton("Export Arcs"), "ExpArcs");
            addToGUI(gui, new JButton("Export Points"), "ExpPoints");
        }
        return gui;
View Full Code Here

                if (eomg != null) {
                    java.awt.Shape shape = eomg.getGraphic().getShape();
                    Rectangle rect = shape.getBounds();

                    Vector vec = new Vector();
                    vec.add(new JSeparator());

                    JMenuItem done = new JMenuItem("Done");
                    done.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                            deactivate();
View Full Code Here

        this.layer = com.bbn.openmap.layer.SinkLayer.getSharedInstance();
        GridBagLayout gridbag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
        setLayout(gridbag);

        JSeparator sep = new JSeparator();
        sep.setToolTipText(title);

        c.anchor = GridBagConstraints.WEST;
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        gridbag.setConstraints(sep, c);
View Full Code Here

                add(cbs);
            }
        }

        if (edit != null) {
            add(new JSeparator());
            add(edit);
        }
        if (add != null) {
            add(add);
        }
View Full Code Here

TOP

Related Classes of javax.swing.JSeparator$AccessibleJSeparator

Copyright © 2018 www.massapicom. 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.