Package javax.swing

Examples of javax.swing.JSeparator


                demoButton2));
        controlsPanel.add(panelOf(
                new JLabel("Bind Radio Buttons to boolean:"),
                trueButton,
                falseButton));
        controlsPanel.add(new JSeparator());
        controlsPanel.add(panelOf(
                new JLabel("Bind Radio Buttons to enum:"),
                fooButton,
                barButton,
                bazButton,
                setToFooButton));
        controlsPanel.add(new JSeparator());
        controlsPanel.add(panelOf(
                new JLabel("Filtering JList:"),
                filterText,
                demoList,
                changeList,
                changeSelection,
                listChangedLabel));
        controlsPanel.add(new JSeparator());
        controlsPanel.add(panelOf(
                new JLabel("Multiselect JList:"),
                demoMultiselectList,
                multiselectContents,
                selectMulti));
        controlsPanel.add(new JSeparator());
        controlsPanel.add(panelOf(
                new JLabel("Bind JComboBox:"),
                comboBox,
                selItem));
        controlsPanel.add(new JSeparator());
        controlsPanel.add(panelOf(
                new JLabel("Slider:"),
                slider,
                sliderValue,
                setSlider));
        controlsPanel.add(new JSeparator());

        String text = "test\nlabel\ttab";
        JLabel testLabel = new JLabel(text);
        JTextField testField = new JTextField(text);
        controlsPanel.add(panelOf(
View Full Code Here


            center.add(checkBox);
        }
    }

    private void addNotFilterOption(JPanel center) {
        center.add(new JSeparator(SwingConstants.HORIZONTAL));
        center.add(notFilterCheck);
    }
View Full Code Here

            }
        });

        JPanel south = new JPanel(new BorderLayout());
        south.setBorder(new EmptyBorder(5,5,5,5));
        south.add(new JSeparator(), BorderLayout.NORTH);
        south.add(buttons, BorderLayout.EAST);

        if (curProject != null) {
            for (String i : curProject.getFileList()) {
                analyzeModel.addElement(i);
View Full Code Here

        msgArea.setColumns(50);
        details.setText(stacktrace);
        details.setEditable(false);

        detailsArea = new JPanel(new BorderLayout(0, 10));
        detailsArea.add(new JSeparator(), BorderLayout.NORTH);
        detailsArea.add(new JScrollPane(details), BorderLayout.CENTER);

        subpanel = new JPanel(new BorderLayout());

        constraints.insets = new Insets(10, 4, 4, 4);
View Full Code Here

      jMenu3 = new JMenu();
      newFileMenuItem = new JMenuItem();
      openFileMenuItem = new JMenuItem();
      saveMenuItem = new JMenuItem();
      closeFileMenuItem = new JMenuItem();
      jSeparator2 = new JSeparator();
      exitMenuItem = new JMenuItem();
      jMenu4 = new JMenu();
      cutMenuItem = new JMenuItem();
      copyMenuItem = new JMenuItem();
      pasteMenuItem = new JMenuItem();
      jSeparator1 = new JSeparator();
      deleteMenuItem = new JMenuItem();
      jMenu5 = new JMenu();
      helpMenuItem = new JMenuItem();
 
      setJMenuBar(jMenuBar1);
View Full Code Here

    return super.getParentAdapter();
  }

  @Override
  protected Component newWidget() {
    return new JSeparator();
  }
View Full Code Here

    super(null);
  }

  @Override
  protected Component createWidget() {
    JSeparator separator = new JSeparator();
    Dimension size = new Dimension(100, 10);
    separator.setSize(size);
    separator.doLayout();
    separator.validate();
    return separator;
  }
View Full Code Here

        WidgetAdapter target = adaptable.getDropWidget().get(0);
        if (target.getWidget() instanceof JMenuItem) {
          JMenuItem drop = (JMenuItem) target.getWidget();
          jmenu.add(drop);
        } else if (target.getWidget() instanceof JSeparator) {
          JSeparator jsep = (JSeparator) target.getWidget();
          jmenu.add(jsep);
        }else{
          adaptable.setMascotLocation(p);
          setDropStatus(NOOP);
          return false;
View Full Code Here

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicSeparatorUI ui = new BasicSeparatorUI();
    JSeparator h = new JSeparator(JSeparator.HORIZONTAL);
    harness.check(ui.getMaximumSize(h), null);
    JSeparator v = new JSeparator(JSeparator.VERTICAL);
    harness.check(ui.getMaximumSize(v), null);
  }
View Full Code Here

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicSeparatorUI ui = new BasicSeparatorUI();
    JSeparator h = new JSeparator(JSeparator.HORIZONTAL);
    harness.check(ui.getMinimumSize(h), null);
    JSeparator v = new JSeparator(JSeparator.VERTICAL);
    harness.check(ui.getMinimumSize(v), null);
  }
View Full Code Here

TOP

Related Classes of javax.swing.JSeparator

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.