Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


    _maxRowsFilterShortcutPanel = createMaxRowsFilterShortcutPanel();

    _hintLabel = DCLabel.darkMultiLine("Please select the source columns of your job in the tree to the left.\n\n"
        + "Source columns define where to retrieve the input of your analysis.");
    _hintLabel.setFont(WidgetUtils.FONT_HEADER2);
    _hintLabel.setBorder(new EmptyBorder(20, 20, 20, 20));
    _hintLabel.setIconTextGap(20);
    _hintLabel.setIcon(ImageManager.getInstance().getImageIcon("images/model/column.png"));

    _analysisJobBuilder.getSourceColumnListeners().add(this);
    setBorder(WidgetUtils.BORDER_EMPTY);
View Full Code Here


    DCPanel panel = new DCPanel();
    panel.setOpaque(true);
    panel.setBackground(WidgetUtils.BG_COLOR_DARK);

    JLabel iconLabel = new JLabel(IconUtils.getDescriptorIcon(_descriptor, IconUtils.ICON_SIZE_LARGE));
    iconLabel.setBorder(new EmptyBorder(0, 0, 0, 10));
    iconLabel.setOpaque(false);

    JLabel nameLabel = new JLabel(_descriptor.getDisplayName());
    nameLabel.setForeground(WidgetUtils.BG_COLOR_BRIGHTEST);
    nameLabel.setOpaque(false);
View Full Code Here

        if (description != null) {
          description = description.replaceAll("\n", "</p><p>");
          description = "<html><p>" + description + "</p></html>";
          JLabel descLabel = new JLabel(description);
          descLabel.setFont(WidgetUtils.FONT_SMALL);
          descLabel.setBorder(new EmptyBorder(0, 4, 4, 0));
          WidgetUtils.addToGridBag(descLabel, panel, 0, i + 1, 1, 1, GridBagConstraints.NORTHEAST, 0);
        }

        PropertyWidget<?> propertyWidget = createPropertyWidget(beanJobBuilder, propertyDescriptor);
        getPropertyWidgetFactory().registerWidget(propertyDescriptor, propertyWidget);
View Full Code Here

      }
    });

    // initialize search text field
    _searchDatastoreTextField = WidgetFactory.createTextField("Search/filter datastores");
    _searchDatastoreTextField.setBorder(new CompoundBorder(new EmptyBorder(4, 0, 0, 0), WidgetUtils.BORDER_THIN));
    _searchDatastoreTextField.setOpaque(false);
    _searchDatastoreTextField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        String text = _searchDatastoreTextField.getText();
        if (StringUtils.isNullOrEmpty(text)) {
          // when there is no search query, set all datastores visible
          for (DatastorePanel datastorePanel : _datastorePanels) {
            datastorePanel.setVisible(true);
          }
        } else {
          // do a case insensitive search
          text = text.trim().toLowerCase();
          for (DatastorePanel datastorePanel : _datastorePanels) {
            String name = datastorePanel.getDatastore().getName().toLowerCase();
            datastorePanel.setVisible(name.indexOf(text) != -1);
          }
          selectFirstVisibleDatastore();
        }
      }
    });
    _searchDatastoreTextField.addKeyListener(new KeyAdapter() {
      @Override
      public void keyPressed(KeyEvent e) {
        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
          clickAnalyzeButton();
        } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
          selectNextVisibleDatastore();
        } else if (e.getKeyCode() == KeyEvent.VK_UP) {
          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();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    buttonPanel.setBorder(new EmptyBorder(0, 10, 0, 0));
    buttonPanel.add(_analyzeButton);

    add(buttonPanel);
  }
View Full Code Here

        removeFilenameTextField();
      }
    });

    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);
View Full Code Here

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

        }
      }
    });

    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();
View Full Code Here

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

    JComponent parentComponent = super.createJComponent();

    JPanel panel = new JPanel(new BorderLayout());
    JLabel label = new JLabel("Hello DataCleaner users! This label was drawn by our extension!");
    label.setOpaque(false);
    label.setBorder(new EmptyBorder(20, 20, 20, 20));

    panel.add(label, BorderLayout.NORTH);
    panel.add(parentComponent, BorderLayout.CENTER);
    return panel;
  }
View Full Code Here

        }
      }
    });

    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();
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.