Examples of JSeparator


Examples of javax.swing.JSeparator

    JPanel floorPanel = createVerticalTitledPanel(preferences.getLocalizedString(
        RoomPanel.class, "floorPanel.title"),
        new JComponent [] {this.floorVisibleCheckBox, null,
                           this.floorColorRadioButton, this.floorColorButton,
                           this.floorTextureRadioButton, this.floorTextureComponent});
    floorPanel.add(new JSeparator(), new GridBagConstraints(
        0, 3, 2, 1, 1, 0, GridBagConstraints.CENTER,
        GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0));
    floorPanel.add(this.floorMattRadioButton, new GridBagConstraints(
        0, 4, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));
    floorPanel.add(this.floorShinyRadioButton, new GridBagConstraints(
        1, 4, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    add(floorPanel, new GridBagConstraints(
        0, 1, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
   
    JPanel ceilingPanel = createVerticalTitledPanel(preferences.getLocalizedString(
        RoomPanel.class, "ceilingPanel.title"),
        new JComponent [] {this.ceilingVisibleCheckBox, null,
                           this.ceilingColorRadioButton, this.ceilingColorButton,
                           this.ceilingTextureRadioButton, this.ceilingTextureComponent});
    ceilingPanel.add(new JSeparator(), new GridBagConstraints(
        0, 3, 2, 1, 1, 0, GridBagConstraints.CENTER,
        GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0));
    ceilingPanel.add(this.ceilingMattRadioButton, new GridBagConstraints(
        0, 4, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));
View Full Code Here

Examples of javax.swing.JSeparator

            dialog.setVisible(true);
          }
        });

        popup.add(databaseDriversMenuItem);
        popup.add(new JSeparator(JSeparator.HORIZONTAL));
        popup.add(compositeMenuItem);
        popup.setBorder(WidgetUtils.BORDER_THIN);

        popup.show(moreDatastoreTypesButton, 0, moreDatastoreTypesButton.getHeight());
      }
View Full Code Here

Examples of javax.swing.JSeparator

    final Object[] comboBoxModel = new Object[databaseDrivers.size() + 3];
    comboBoxModel[0] = "";
    for (int i = 0; i < databaseDrivers.size(); i++) {
      comboBoxModel[i + 1] = databaseDrivers.get(i);
    }
    comboBoxModel[comboBoxModel.length - 2] = new JSeparator(JSeparator.HORIZONTAL);
    comboBoxModel[comboBoxModel.length - 1] = MANAGE_DATABASE_DRIVERS;

    _databaseDriverComboBox = new JComboBox(comboBoxModel);
    _databaseDriverComboBox.setRenderer(new DefaultListCellRenderer() {
View Full Code Here

Examples of javax.swing.JSeparator

        JMenuItem recentItem = fileMenu.add(recentMenu);       
        recentItem.setMnemonic('R');
       
        JMenuItem closeItem = fileMenu.add(new CloseAction(manager));
        closeItem.setMnemonic('C');
        fileMenu.add(new JSeparator());
        JMenuItem exitItem = fileMenu.add(new ExitAction(manager));
        exitItem.setAccelerator(KeyStroke.getKeyStroke("alt X"));
        exitItem.setMnemonic('x');
       
        JMenu helpMenu = new JMenu("Help");
View Full Code Here

Examples of javax.swing.JSeparator

          setToolTipText(Strings.get("startlevel.descr"));
          final ButtonGroup group = new ButtonGroup();
          group.add(noStartLevelSelected);

          add(levelMenuLabel = new JMenuItem(Strings.get("startlevel.noSel")));
          add(new JSeparator());

          for(int i = levelMin; i <= levelMax; i++) {
            final AbstractButton jrb = new JRadioButtonMenuItem(Integer.toString(i));
            group.add(jrb);
            add(jrb);
View Full Code Here

Examples of javax.swing.JSeparator

          setState(false);
        }
      });
    statusBar.setVisible(false);

    menu.add(new JSeparator());

    int count = 0;
    menuMap.clear();
    for(Iterator it = displayMap.keySet().iterator(); it.hasNext(); ) {
      final ServiceReference     sr   = (ServiceReference)it.next();
      final String   name = (String)sr.getProperty(SwingBundleDisplayer.PROP_NAME);
      final int c2 = count++;

      menu.add(new JRadioButtonMenuItem(name) {
          {
            setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1 + c2,
                                                  mask));
            setMnemonic(KeyEvent.VK_1 + c2);
            menuMap.put(sr, this);
            addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ev) {
                  bundlePanelShowTab(sr);
                }
              });
            group.add(this);
          }});
    }

    lfMenu = new LookAndFeelMenu(Strings.get("menu_lookandfeel"), lfManager);

    lfMenu.addRoot(SwingUtilities.getRoot(frame));
    menu.add(new JSeparator());
    menu.add(lfMenu);

    menu.add(makeErrorDialogMenu());

    return menu;
View Full Code Here

Examples of javax.swing.JSeparator

                  });
              }
            });


          add(new JSeparator());

          add(new JMenuItem(Strings.get("str_fwinfo")) {
              {
                addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent ev) {
View Full Code Here

Examples of javax.swing.JSeparator

              }
            });
        }
      });

    editMenu.add(new JSeparator());

    JMenu selectMenu = new JMenu("Select bundle");
    editMenu.add(selectMenu);

    Map buckets = makeBundleBuckets();
View Full Code Here

Examples of javax.swing.JSeparator

   
    add(topPanel, new GridBagConstraints(
        0, 0, 2, 1, 0, 0, GridBagConstraints.CENTER,
        GridBagConstraints.NONE, new Insets(0, 0, 5, 0), 0, 0));
    // Second row
    add(new JSeparator(), new GridBagConstraints(
        0, 1, 2, 1, 0, 0, GridBagConstraints.CENTER,
        GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), -10, 0));
    // Third row
    add(this.headerFormatLabel, new GridBagConstraints(
        0, 2, 1, 1, 0, 0, labelAlignment,
View Full Code Here

Examples of javax.swing.JSeparator

    // Third row
    JPanel leftSidePanel = createTitledPanel(
        preferences.getLocalizedString(WallPanel.class, "leftSidePanel.title"),
        new JComponent [] {this.leftSideColorRadioButton, this.leftSideColorButton,
                           this.leftSideTextureRadioButton, this.leftSideTextureComponent}, false);
    leftSidePanel.add(new JSeparator(), new GridBagConstraints(
        0, 2, 2, 1, 1, 0, GridBagConstraints.CENTER,
        GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0));
    leftSidePanel.add(this.leftSideMattRadioButton, new GridBagConstraints(
        0, 3, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));
    leftSidePanel.add(this.leftSideShinyRadioButton, new GridBagConstraints(
        1, 3, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    add(leftSidePanel, new GridBagConstraints(
        0, 2, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.HORIZONTAL, rowInsets, 0, 0));
   
    JPanel rightSidePanel = createTitledPanel(
        preferences.getLocalizedString(WallPanel.class, "rightSidePanel.title"),
        new JComponent [] {this.rightSideColorRadioButton, this.rightSideColorButton,
                           this.rightSideTextureRadioButton, this.rightSideTextureComponent}, false);
    rightSidePanel.add(new JSeparator(), new GridBagConstraints(
        0, 2, 2, 1, 1, 0, GridBagConstraints.CENTER,
        GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0));
    rightSidePanel.add(this.rightSideMattRadioButton, new GridBagConstraints(
        0, 3, 1, 1, 1, 0, GridBagConstraints.LINE_START,
        GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));
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.