Package javax.swing

Examples of javax.swing.JSeparator


    acceptButton.setAlignmentX(RIGHT_ALIGNMENT);
    partnerColumn.add(acceptButton);
   
    slotRow.add(partnerColumn);
   
    slotRow.add(new JSeparator(SwingConstants.VERTICAL),
        SBoxLayout.constraint(SLayout.EXPAND_Y));
   
    /*
     * Create user offer's side
     */
    JComponent myColumn = SBoxLayout.createContainer(SBoxLayout.VERTICAL, SBoxLayout.COMMON_PADDING);
    JLabel myOfferLabel = new JLabel("My offer");
    myOfferLabel.setAlignmentX(CENTER_ALIGNMENT);
    myColumn.add(myOfferLabel);
   
    mySlots = new SlotGrid(2, 2);
    myColumn.add(mySlots);
    slotRow.add(myColumn);
   
    myOfferStatus = new JLabel("Changing");
    myOfferStatus.setAlignmentX(CENTER_ALIGNMENT);
    myColumn.add(myOfferStatus);
   
    offerButton = new JButton("Offer");
    offerButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        controller.lockTrade();
      }
    });
    offerButton.setAlignmentX(RIGHT_ALIGNMENT);
    myColumn.add(offerButton);
   
    /*
     * Separate the cancel button from the rest of the components to
     * highlight its special status.
     */
    content.add(new JSeparator(SwingConstants.HORIZONTAL),
        SBoxLayout.constraint(SLayout.EXPAND_X));
   
    // Cancel button
    cancelButton = new JButton("Cancel");
    cancelButton.addActionListener(new ActionListener() {
View Full Code Here


    progressBar.setPreferredSize(new Dimension(350, 20));
    progressBar.setMaximumSize(new Dimension(350, 20));
    progressBar.setBorder(new EtchedBorder(EtchedBorder.RAISED));

   
    final JSeparator separator = new JSeparator(JSeparator.VERTICAL);
    separator.setMaximumSize(new Dimension(10, 20));

    add(Box.createRigidArea(new Dimension(5, 0)));
    add(plugIcon);
    add(Box.createRigidArea(new Dimension(5, 0)));
    add(separator);
View Full Code Here

                                NbPreferences.forModule(LayoutPanel.class).put("LayoutPanel.lastPresetName", input);
                            }
                        }
                    }
                });
                menu.add(new JSeparator());
                menu.add(saveItem);
                menu.show(layoutToolbar, 0, -menu.getPreferredSize().height);
            }
        });
    }
View Full Code Here

        if ((m_batchData.m_srcTypes & JBatchData.JPG_FORMAT) != 0)
            m_ctrl_jpg.setSelected(true);
        layout.putConstraint(SpringLayout.EAST, m_ctrl_jpg, -10, SpringLayout.WEST, m_ctrl_png);
        layout.putConstraint(SpringLayout.NORTH, m_ctrl_jpg, 0, SpringLayout.NORTH, m_ctrl_recursive);

        JSeparator sep = new JSeparator(JSeparator.HORIZONTAL);
        ctrlPanel.add(sep);
        layout.putConstraint(SpringLayout.WEST, sep, 10, SpringLayout.WEST, ctrlPanel);
        layout.putConstraint(SpringLayout.EAST, sep, -10, SpringLayout.EAST, button);
        layout.putConstraint(SpringLayout.NORTH, sep, 30, SpringLayout.SOUTH, m_ctrl_recursive);
View Full Code Here

      if ((tooltipInfo.getFooterImage() != null)
          || (tooltipInfo.getFooterSections().size() > 0)) {
        height += gap;
        // The footer separator
        height += new JSeparator(JSeparator.HORIZONTAL)
            .getPreferredSize().height;

        height += gap;

        int footerTextHeight = 0;
View Full Code Here

      if ((tooltipInfo.getFooterImage() != null)
          || (tooltipInfo.getFooterSections().size() > 0)) {
        y += gap;
        // The footer separator
        footerSeparator = new JSeparator(JSeparator.HORIZONTAL);
        richTooltipPanel.add(footerSeparator);
        footerSeparator.setBounds(ins.left, y, parent.getWidth()
            - ins.left - ins.right, footerSeparator
            .getPreferredSize().height);
View Full Code Here

    for (int i = 0; i < accessibility.length; i++) {
      CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(accessibility[i]);
      menuItem.setIcon(Ajde.getDefault().getIconRegistry().getAccessibilitySwingIcon(accessibility[i]));
      filterMenu.add(menuItem);
    }
    filterMenu.add(new JSeparator());

    IProgramElement.Kind[] kinds = IProgramElement.Kind.ALL;
    for (int i = 0; i < kinds.length; i++) {
      if (kinds[i].isMember()) {
        CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(kinds[i]);
        menuItem.setIcon((Icon)Ajde.getDefault().getIconRegistry().getIcon(kinds[i]).getIconResource());
        filterMenu.add(menuItem);
      }
    }
    filterMenu.add(new JSeparator());

    IProgramElement.Modifiers[] modifiers = IProgramElement.Modifiers.ALL;
    for (int i = 0; i < modifiers.length; i++) {
      CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(modifiers[i]);
      filterMenu.add(menuItem);
View Full Code Here

                GridBagConstraints.NONE,
                new Insets(0, 0, 0, 0),
                0, 0));

        JPanel wrapper = new JPanel(new BorderLayout());
        wrapper.add(new JSeparator(JSeparator.VERTICAL), BorderLayout.WEST);
        wrapper.add(debugPanel);
        wrapper.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 6));

        return wrapper;
    }
View Full Code Here

                0.0, 0.0,
                GridBagConstraints.LINE_START,
                GridBagConstraints.NONE,
                new Insets(0, 0, 0, 0),
                0, 0));
        innerPanel.add(new JSeparator(),
                new GridBagConstraints(1, 0,
                1, 1,
                0.9, 0.0,
                GridBagConstraints.LINE_START,
                GridBagConstraints.HORIZONTAL,
View Full Code Here

        private ControlsPanel() {
            setBorder(new TitledBorder("Marquee Controls"));

            positionCombo.setModel(new PositionComboModel());

            JSeparator separator;

            add(new JLabel("X"));
            add(xTextField);
            add(new JLabel("Y"));
            add(yTextField);
            add(new JLabel("Position"));
            add(positionCombo);
            add(new JLabel("Opacity"));
            add(opacitySlider);
            add(new JLabel("Text"));
            add(textTextField);
            add(enableCheckBox);
            separator = new JSeparator(JSeparator.VERTICAL);
            separator.setPreferredSize(new Dimension(4, 20));
            add(separator);
            add(applyButton);
            separator = new JSeparator(JSeparator.VERTICAL);
            separator.setPreferredSize(new Dimension(4, 20));
            add(separator);
            add(enableButton);
            add(disableButton);

            opacitySlider.setPreferredSize(new Dimension(100, 16));
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.