Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.VerticalLayout


    final JToolBar toolBar = WidgetFactory.createToolBar();
    toolBar.add(WidgetFactory.createToolBarSeparator());
    toolBar.add(addExtensionButton);

    final DCPanel listPanel = new DCPanel();
    listPanel.setLayout(new VerticalLayout(4));
    listPanel.setBorder(new EmptyBorder(0, 10, 10, 0));

    final ImageIcon pluginIcon = imageManager.getImageIcon("images/component-types/plugin.png");
    final ImageIcon errorIcon = imageManager.getImageIcon("images/status/error.png");
View Full Code Here


    DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttonPanel.add(_addDatastoreButton);

    DCPanel centerPanel = new DCPanel();
    centerPanel.setLayout(new VerticalLayout(4));
    centerPanel.add(formPanel);
    if (isPreviewTableEnabled()) {
      centerPanel.add(_previewTablePanel);
    }
    centerPanel.add(buttonPanel);
View Full Code Here

      }
    });

    _sourceTabOuterPanel = new DCPanel(imageManager.getImage("images/window/source-tab-background.png"), 95, 95,
        WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    _sourceTabOuterPanel.setLayout(new VerticalLayout(0));

    _schemaTreePanel = schemaTreePanel;
    _metadataPanel = metadataPanel;

    _leftPanel = new CollapsibleTreePanel(_schemaTreePanel);
View Full Code Here

    // temporary variable to make it easier to refactor the layout
    WidgetUtils.addToGridBag(DCLabel.bright("Datastore name:"), formPanel, 0, 0);
    WidgetUtils.addToGridBag(_datastoreNameField, formPanel, 1, 0);

    final DCPanel checkBoxPanel = new DCPanel().setTitledBorder("Contained datastores");
    checkBoxPanel.setLayout(new VerticalLayout(4));

    for (JCheckBox checkBox : _checkBoxes) {
      checkBoxPanel.add(checkBox);
    }

    WidgetUtils.addToGridBag(checkBoxPanel, formPanel, 0, 1, 2, 1);

    _addDatastoreButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        final List<Datastore> datastores = new ArrayList<Datastore>();

        for (JCheckBox checkBox : _checkBoxes) {
          if (checkBox.isSelected()) {
            String datastoreName = checkBox.getText();
            Datastore datastore = _mutableDatastoreCatalog.getDatastore(datastoreName);
            if (datastore == null) {
              throw new IllegalStateException("No such datastore: " + datastoreName);
            }
            datastores.add(datastore);
          }
        }

        final Datastore datastore = new CompositeDatastore(_datastoreNameField.getText(), datastores);

        if (_originalDatastore != null) {
          _mutableDatastoreCatalog.removeDatastore(_originalDatastore);
        }

        _mutableDatastoreCatalog.addDatastore(datastore);
        dispose();
      }
    });

    DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttonPanel.add(_addDatastoreButton);

    DCPanel centerPanel = new DCPanel();
    centerPanel.setLayout(new VerticalLayout(4));
    centerPanel.add(formPanel);
    centerPanel.add(buttonPanel);

    JXStatusBar statusBar = WidgetFactory.createStatusBar(_statusLabel);
View Full Code Here

  public MultiSourceColumnComboBoxPanel() {
    _sourceComboBoxPanel = new DCPanel();
    _buttonPanel = new DCPanel();
    _sourceComboBoxPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
    _sourceComboBoxPanel.setLayout(new VerticalLayout());
    _sourceColumnComboBoxes = new ArrayList<SourceColumnComboBox>();

    JButton addButton = WidgetFactory.createSmallButton("images/actions/add.png");
    JButton removeButton = WidgetFactory.createSmallButton("images/actions/remove.png");

    _buttonPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
    _buttonPanel.setLayout(new VerticalLayout(2));

    _buttonPanel.add(addButton);
    _buttonPanel.add(removeButton);

    addButton.addActionListener(new ActionListener() {
View Full Code Here

  }

  @Override
  protected JComponent getDialogContent() {
    DCPanel centerPanel = new DCPanel();
    centerPanel.setLayout(new VerticalLayout(4));

    for (int i = 0; i < _files.length; i++) {

      final JLabel ofLabel = new JLabel(" of ");
      ofLabel.setForeground(WidgetUtils.BG_COLOR_BRIGHTEST);
View Full Code Here

        .brightMultiLine("A simple dictionary is a dictionary that you enter directly in DataCleaner. In the 'Values' field you can enter each value of the dictionary on a separate line.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));

    final DCPanel mainPanel = new DCPanel();
    mainPanel.setLayout(new VerticalLayout(4));
    mainPanel.add(descriptionLabel);
    mainPanel.add(formPanel);

    final JScrollPane scroll = WidgetUtils.scrolleable(mainPanel);
    return scroll;
View Full Code Here

        JXTitledSeparator custom = new JXTitledSeparator();
        custom.setName("customSeparator");
        customLink = new JXHyperlink();
        customLink.setName("customLink");
       
        JComponent standaloneLinks = new JXPanel(new VerticalLayout(20));
        standaloneLinks.add(simple);
        standaloneLinks.add(plainBrowse);
        standaloneLinks.add(plainMail);
        standaloneLinks.add(customBrowse);
        standaloneLinks.add(custom);
View Full Code Here

    }

    private void createTipOfTheDayDemo() {
        model = createTipOfTheDayModel();

        JXPanel panel = new JXPanel(new VerticalLayout());
        totd = new JXTipOfTheDay(model);
        totd.setName("totd");
        panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
        panel.add(totd);
View Full Code Here

   
    /**
     * {@inheritDoc}
     */
    protected void createDemo() {
        setLayout(new VerticalLayout(5));
       
        basic = new JButton();
        add(basic);
       
        owner = new JButton();
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.VerticalLayout

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.