Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


  private final List<SourceColumnComboBox> _sourceColumnComboBoxes;

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


      final JLabel ofLabel = new JLabel(" of ");
      ofLabel.setForeground(WidgetUtils.BG_COLOR_BRIGHTEST);

      final DCPanel textPanel = new DCPanel();
      textPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
      textPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));
      textPanel.add(_currentBytesLabels[i]);
      textPanel.add(ofLabel);
      textPanel.add(_expectedBytesLabels[i]);
View Full Code Here

    buttonPanel.add(createDictionaryButton);
    WidgetUtils.addToGridBag(buttonPanel, formPanel, 0, row, 2, 1);

    final DCLabel descriptionLabel = DCLabel
        .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);
View Full Code Here

      setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    }else{
      if (hasFocus) {
          setBorder( UIManager.getBorder("Table.focusCellHighlightBorder") );
      } else {
          setBorder(new EmptyBorder(1, 1, 1, 1));
      }    
    }  
   
    //tooltip messages
    if(syntaxErrors || (fullAccessRequired && !fullPermission) || loadedWithErrors){
View Full Code Here

        Arrays.sort(dataArray, new JColChooserDataComparator(true));
        for (JColChooserData data : dataArray)
        {
            m_comboBox.addItem(data);
        }
        m_comboBox.setBorder(new EmptyBorder(10, 0, 0, 0));
        Dimension dim = m_comboBox.getPreferredSize();
        m_comboBox.setPreferredSize(new Dimension(200, (int)dim.getHeight()));
        panel.add(m_comboBox);

        JPanel panel2 = new JPanel();
        panel2.setLayout(new BoxLayout(panel2, BoxLayout.X_AXIS));
        panel2.setBorder(new EmptyBorder(5, 0, 10, 10));
        panel2.add(Box.createHorizontalGlue());

        JButton ok = new JButton(Main.getString("ok"));
        ok.addActionListener(new ActionListener()
        {
View Full Code Here

    if (b == null || b instanceof UIResource) {
      Border toSet = UIManager.getBorder("RichTooltipPanel.border");
      if (toSet == null)
        toSet = new BorderUIResource.CompoundBorderUIResource(
            new LineBorder(FlamingoUtilities.getBorderColor()),
            new EmptyBorder(2, 4, 3, 4));
      this.richTooltipPanel.setBorder(toSet);
    }
    LookAndFeel.installProperty(this.richTooltipPanel, "opaque",
        Boolean.TRUE);
  }
View Full Code Here

    this.setLayout(new BorderLayout());

    Box box = new Box(BoxLayout.Y_AXIS);

    Border border
      = BorderFactory.createCompoundBorder(new EmptyBorder(5, 5, 5, 5),
                                           new TitledBorder("Server: " + id));

    box.setBorder(border);

    ButtonGroup group = new ButtonGroup();
View Full Code Here

    private void init() {
        this.setLayout(new BorderLayout());

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);

        mainPanel.setBorder(margin);
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));

        mainPanel.add(makeTitlePanel());
View Full Code Here

    private void init() {
        this.setLayout(new BorderLayout());

        // MAIN PANEL
        JPanel mainPanel = new JPanel();
        Border margin = new EmptyBorder(10, 10, 5, 10);

        mainPanel.setBorder(margin);
        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));

        mainPanel.add(makeTitlePanel());
View Full Code Here

        VerticalPanel options = new VerticalPanel(Color.white);
        yAxisLabel.setBackground(Color.white);

        JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));
        HorizontalPanel xpanel = new HorizontalPanel(Color.white);
        xLabel.setBorder(new EmptyBorder(5,2,5,2));
        xItems.setBackground(Color.white);
        xItems.setValues(AbstractTable.xitems);
        xpanel.add(xLabel);
        xpanel.add(xItems);
        options.add(xpanel);

        JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));
        HorizontalPanel xApanel = new HorizontalPanel(Color.white);
        xALabel.setBorder(new EmptyBorder(5,2,5,2));
        xAxisLabel.setBackground(Color.white);
        xAxisLabel.setValues(AbstractChart.X_LABELS);
        xApanel.add(xALabel);
        xApanel.add(xAxisLabel);
        options.add(xApanel);

        JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));
        HorizontalPanel ypanel = new HorizontalPanel(Color.white);
        yLabel.setBorder(new EmptyBorder(5,2,5,2));
        yItems.setBackground(Color.white);
        yItems.setValues(AbstractTable.items);
        ypanel.add(yLabel);
        ypanel.add(yItems);
        options.add(ypanel);
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.