Examples of VerticalLayout


Examples of org.jdesktop.swingx.VerticalLayout

          selectPreviousVisibleDatastore();
        }
      }
    });

    setLayout(new VerticalLayout(4));

    final DCLabel headerLabel = DCLabel.dark("Select datastore for analysis");
    headerLabel.setFont(WidgetUtils.FONT_HEADER1);
    add(headerLabel);

    final DCLabel createNewDatastoreLabel = DCLabel.dark("Create a new datastore:");
    createNewDatastoreLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCPanel newDatastorePanel = new DCPanel();
    newDatastorePanel.setLayout(new VerticalLayout(4));
    newDatastorePanel.setBorder(new EmptyBorder(10, 10, 10, 0));
    newDatastorePanel.add(createNewDatastoreLabel);
    newDatastorePanel.add(createNewDatastorePanel());

    add(newDatastorePanel);

    _listPanel = new DCPanel();
    _listPanel.setLayout(new VerticalLayout(4));
    _listPanel.setBorder(new EmptyBorder(10, 10, 10, 0));
    add(_listPanel);
    updateDatastores();

    final DCPanel buttonPanel = new DCPanel();
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    _databaseDriverCatalog = databaseDriverCatalog;
    _databaseDriversPanel = databaseDriversPanel;
    _userPreferences = userPreferences;
    _filenameTextFields = new ArrayList<FilenameTextField>();
    _filesPanel = new DCPanel();
    _filesPanel.setLayout(new VerticalLayout(4));

    final Set<String> classNames = new TreeSet<String>();
    classNames.add("");
    final List<DatabaseDriverDescriptor> drivers = _databaseDriverCatalog.getDatabaseDrivers();
    for (DatabaseDriverDescriptor dd : drivers) {
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

      }
    });

    final DCPanel filesButtonPanel = new DCPanel();
    filesButtonPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
    filesButtonPanel.setLayout(new VerticalLayout(2));
    filesButtonPanel.add(addButton);
    filesButtonPanel.add(removeButton);

    final DCPanel filesOuterPanel = new DCPanel().setTitledBorder("Driver JAR file(s)");
    filesOuterPanel.setLayout(new BorderLayout());
    filesOuterPanel.add(_filesPanel, BorderLayout.CENTER);
    filesOuterPanel.add(filesButtonPanel, BorderLayout.EAST);

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttonPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
    buttonPanel.add(_addDriverButton);

    final DCPanel mainPanel = new DCPanel();
    mainPanel.setLayout(new VerticalLayout(4));
    mainPanel.add(driverClassOuterPanel);
    mainPanel.add(filesOuterPanel);
    mainPanel.add(buttonPanel);

    final DCPanel outerPanel = new DCPanel();
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    _windowContext = windowContext;
    _catalog = (MutableReferenceDataCatalog) _configuration.getReferenceDataCatalog();
    _catalog.addStringPatternListener(this);

    _listPanel = new DCPanel();
    _listPanel.setLayout(new VerticalLayout(4));

    updateComponents();

    final DCLabel newStringPatternsLabel = DCLabel.dark("Create new string pattern:");
    newStringPatternsLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel existingStringPatternsLabel = DCLabel.dark("Existing string patterns:");
    existingStringPatternsLabel.setFont(WidgetUtils.FONT_HEADER1);

    setLayout(new VerticalLayout(10));
    add(newStringPatternsLabel);
    add(createNewStringPatternsPanel());
    add(Box.createVerticalStrut(10));
    add(existingStringPatternsLabel);
    setBorder(new EmptyBorder(10, 10, 10, 0));
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

  public MultipleCharPropertyWidget(ConfiguredPropertyDescriptor propertyDescriptor,
      AbstractBeanJobBuilder<?, ?, ?> beanJobBuilder) {
    super(beanJobBuilder, propertyDescriptor);

    _textFieldPanel = new DCPanel();
    _textFieldPanel.setLayout(new VerticalLayout(2));

    char[] currentValue = (char[]) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    if (currentValue == null) {
      currentValue = new char[1];
    }
    updateComponents(currentValue);

    final JButton addButton = WidgetFactory.createSmallButton("images/actions/add.png");
    addButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        addCharField();
        fireValueChanged();
      }
    });

    final JButton removeButton = WidgetFactory.createSmallButton("images/actions/remove.png");
    removeButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        int componentCount = _textFieldPanel.getComponentCount();
        if (componentCount > 0) {
          _textFieldPanel.remove(componentCount - 1);
          _textFieldPanel.updateUI();
          fireValueChanged();
        }
      }
    });

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
    buttonPanel.setLayout(new VerticalLayout(2));
    buttonPanel.add(addButton);
    buttonPanel.add(removeButton);

    final DCPanel outerPanel = new DCPanel();
    outerPanel.setLayout(new BorderLayout());
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    _injectorBuilder = injectorBuilder;
    _catalog = (MutableReferenceDataCatalog) _configuration.getReferenceDataCatalog();
    _catalog.addDictionaryListener(this);

    _listPanel = new DCPanel();
    _listPanel.setLayout(new VerticalLayout(4));

    updateComponents();

    final DCLabel newDictionariesLabel = DCLabel.dark("Create new dictionary:");
    newDictionariesLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel existingDictionariesLabel = DCLabel.dark("Existing dictionaries:");
    existingDictionariesLabel.setFont(WidgetUtils.FONT_HEADER1);

    setLayout(new VerticalLayout(10));
    add(newDictionariesLabel);
    add(createNewDictionariesPanel());
    add(Box.createVerticalStrut(10));
    add(existingDictionariesLabel);
    setBorder(new EmptyBorder(10, 10, 10, 0));
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    final JScrollPane licenseLabelScroll = WidgetUtils.scrolleable(licenseLabel);
    licenseLabelScroll.setBorder(new CompoundBorder(new EmptyBorder(10, 0, 10, 0), WidgetUtils.BORDER_THIN));

    final DCPanel headerPanel = new DCPanel();
    headerPanel.setLayout(new VerticalLayout());
    headerPanel.add(toolBar);
    headerPanel.add(Box.createVerticalStrut(20));
    headerPanel.add(licenseHeader);

    final DCPanel panel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

    final HumanInferenceToolbarButton humanInferenceButton = new HumanInferenceToolbarButton(
        imageManager.getImageIcon("images/powered-by-human-inference-bright.png"));

    final DCPanel contentPanel = new DCPanel();
    contentPanel.setLayout(new VerticalLayout());
    contentPanel.add(headerLabel);
    contentPanel.add(DCLabel.dark("Copyright (C) 2010 eobjects.org"));
    contentPanel.add(Box.createVerticalStrut(20));
    contentPanel.add(DCPanel.around(humanInferenceButton));
    contentPanel.add(Box.createVerticalStrut(20));
    contentPanel.add(DCLabel.dark("Licensed under the LGPL license"));
    contentPanel.add(DCLabel.dark("(see Licensing tab)."));
    contentPanel.add(Box.createVerticalStrut(30));
    contentPanel.add(DCLabel.dark("Java runtime information:"));
    contentPanel.add(DCLabel.dark("  " + System.getProperty("java.vm.name")));
    contentPanel.add(DCLabel.dark("  by " + System.getProperty("java.vm.vendor")));
    contentPanel.add(DCLabel.dark("  version " + System.getProperty("java.runtime.version")));
    contentPanel.add(Box.createVerticalStrut(30));
    contentPanel.add(buttonPanel);

    final DCPanel mainPanel = new DCPanel(imageManager.getImage("images/window/app-icon-hires.png"), 97, 10,
        WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    mainPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
    mainPanel.setLayout(new VerticalLayout());
    mainPanel.add(contentPanel);

    return mainPanel;
  }
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

        }
      }
    });

    final DCPanel leftPanel = new DCPanel();
    leftPanel.setLayout(new VerticalLayout());
    leftPanel.add(WidgetUtils.decorateWithShadow(chartPanel, true, 4));

    _backButton.setMargin(new Insets(0, 0, 0, 0));
    _backButton.addActionListener(new ActionListener() {
      @Override
View Full Code Here

Examples of org.jdesktop.swingx.VerticalLayout

            + "<p>* A = upper case letters<br>* a = lower case letters<br>* 9 = digits</p>");
    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);
    mainPanel.add(testitPanel);

    return mainPanel;
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.