Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


  @Inject
  DCModule _parentModule;

  @Override
  public JComponent render(OutputAnalyzerResult result) {
    final EmptyBorder border = new EmptyBorder(10, 10, 10, 10);

    int rowCount = result.getWrittenRowCount();
    if (rowCount == 0) {
      JLabel label = new JLabel("No rows written!", imageManager.getImageIcon("images/status/warning.png"),
          JLabel.LEFT);
View Full Code Here


    _progressBarPanel.setLayout(new VerticalLayout(4));
    _progressBarPanel.setBorder(WidgetUtils.BORDER_EMPTY);

    _loadingIcon = new LoadingIcon();
    _loadingLabel = DCLabel.bright("Preparing...");
    _loadingLabel.setBorder(new EmptyBorder(10, 10, 10, 10));
    _progressBarPanel.add(_loadingIcon);
    _progressBarPanel.add(_loadingLabel);

    final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    splitPane.setDividerLocation(240);
View Full Code Here

    final DCPanel formPanel = new DCPanel();

    int row = 0;
    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A datastore synonym catalog is based on a datastore and columns within it. The layout of the datastore is flexible: There should be a master term column and either a single or multiple synonym columns.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));
    WidgetUtils.addToGridBag(DCLabel.bright("Synonym catalog name:"), formPanel, 0, row);
    WidgetUtils.addToGridBag(_nameTextField, formPanel, 1, row);
    row++;
    WidgetUtils.addToGridBag(DCLabel.bright("Datastore:"), formPanel, 0, row);
View Full Code Here

    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");

    for (final ExtensionPackage extensionPackage : extensionPackages) {
View Full Code Here

    }

    if (isPreviewTableEnabled()) {
      _previewTable = new DCTable(new DefaultTableModel(7, 10));
      _previewTablePanel = _previewTable.toPanel();
      _previewTablePanel.setBorder(new EmptyBorder(0, 10, 0, 10));
      _loadingIcon = new LoadingIcon();
      _loadingIcon.setVisible(false);
      _loadingIcon.setPreferredSize(_previewTablePanel.getPreferredSize());
    } else {
      _previewTable = null;
View Full Code Here

    static final int windowWidth = leftWidth + rightWidth;

    public DomEcho03()
    {
       // Make a nice border
       EmptyBorder eb = new EmptyBorder(5,5,5,5);
       BevelBorder bb = new BevelBorder(BevelBorder.LOWERED);
       CompoundBorder cb = new CompoundBorder(eb,bb);
       this.setBorder(new CompoundBorder(cb,eb));

       // Set up the tree
View Full Code Here

    DCPanel formPanel = new DCPanel();

    int row = 0;
    DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A datastore dictionary is a dictionary based on a column in one of your datastores. Please select a datastore in the form below and a tree of that datastore will appear. From here on you can select which column in the datastore to use for dictionary lookups.");
    descriptionLabel.setBorder(new EmptyBorder(0, 0, 0, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));
    WidgetUtils.addToGridBag(descriptionLabel, formPanel, 0, row, 2, 1);

    row++;
    WidgetUtils.addToGridBag(DCLabel.bright("Dictionary name:"), formPanel, 0, row);
View Full Code Here

                    doComplete();
                }
            }
        });

        this.popupMenu.setBorder( new EmptyBorder(1, 1, 1, 1) );
        this.elementInfos = DefinitionResolver.getElementInfos();
    }
View Full Code Here

        JPanel middlePanel = new JPanel(new GridLayout(1, 2));
        middlePanel.add(optionsPanel);
        middlePanel.add(directionsPanel);

        JPanel mainPanel = new JPanel(new BorderLayout());
        mainPanel.setBorder(new EmptyBorder(new Insets(4, 4, 4, 4)));
        mainPanel.add(topPanel, BorderLayout.NORTH);
        mainPanel.add(middlePanel, BorderLayout.CENTER);

        JPanel buttonPanel = new JPanel( new FlowLayout(FlowLayout.CENTER) );
       
View Full Code Here

    _datastoreListPanelRef = new LazyRef<DatastoreListPanel>() {
      @Override
      protected DatastoreListPanel fetch() {
        DatastoreListPanel datastoreListPanel = _injectorWithGlassPane.getInstance(DatastoreListPanel.class);
        datastoreListPanel.setBorder(new EmptyBorder(4, 4, 0, 150));
        return datastoreListPanel;
      }

    };
View Full Code Here

TOP

Related Classes of javax.swing.border.EmptyBorder

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.