Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


  }

  @Override
  public JComponent createJComponent() {
    DCLabel label = DCLabel.dark("Configured in 'Source' tab");
    label.setBorder(new EmptyBorder(4, 4, 4, 4));
    return label;
  }
View Full Code Here


    chartDescription.append("</p></html>");

    final JLabel chartDescriptionLabel = new JLabel(chartDescription.toString());

    chartDescriptionLabel.setBorder(new EmptyBorder(4, 10, 4, 10));

    final JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    split.add(decoratedChartPanel);
    split.add(chartDescriptionLabel);
    split.setDividerLocation(550);
View Full Code Here

    _openJobButton = getOpenJobButton();
    _openAnalysisJobActionListenerProvider = openAnalysisJobActionListenerProvider;

    setPreferredSize(220, 10);

    setBorder(new EmptyBorder(0, 10, 0, 0));
    setLayout(new BorderLayout());
    setVisible(false);

    final JLabel iconLabel = new JLabel(ImageManager.getInstance().getImageIcon("images/window/app-icon.png"));
View Full Code Here

    }
    b.setUI(new MetalButtonUI());
    b.setBackground(WidgetUtils.BG_COLOR_DARKEST);
    b.setForeground(WidgetUtils.BG_COLOR_BRIGHTEST);
    final MatteBorder outerBorder = new MatteBorder(1, 1, 1, 1, WidgetUtils.BG_COLOR_LESS_DARK);
    b.setBorder(new CompoundBorder(outerBorder, new EmptyBorder(2, 4, 2, 4)));
    b.setFocusPainted(false);
    return b;
  }
View Full Code Here

    final JXStatusBar statusBar = new JXStatusBar();
    statusBar.setUI(new MetalStatusBarUI());
    statusBar.putClientProperty(BasicStatusBarUI.AUTO_ADD_SEPARATOR, false);
    statusBar.setBackground(WidgetUtils.BG_COLOR_DARKEST);
    final MatteBorder outerBorder = new MatteBorder(1, 0, 0, 0, WidgetUtils.BG_COLOR_LESS_DARK);
    final EmptyBorder innerBorder = new EmptyBorder(2, 2, 2, 2);
    statusBar.setBorder(new CompoundBorder(outerBorder, innerBorder));
    final JXStatusBar.Constraint c1 = new JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior.FILL);
    statusBar.add(comp, c1);
    return statusBar;
  }
View Full Code Here

  public static JXTextArea createTextArea(String promptText) {
    JXTextArea ta = new JXTextArea(promptText);
    ta.setColumns(17);
    ta.setRows(6);
    ta.setBorder(new CompoundBorder(WidgetUtils.BORDER_THIN, new EmptyBorder(2, 2, 2, 2)));
    return ta;
  }
View Full Code Here

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

    final DCPanel panel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHTEST, WidgetUtils.BG_COLOR_BRIGHT);
    panel.setBorder(new EmptyBorder(10, 10, 10, 10));
    panel.setLayout(new BorderLayout());
    panel.add(tablePanel, BorderLayout.CENTER);
    panel.add(buttonPanel, BorderLayout.SOUTH);

    dialog.setModal(true);
View Full Code Here

    toolBar.add(DCLabel.dark("Included libraries: "));
    toolBar.add(librariesComboBox);
    toolBar.add(visitProjectButton);

    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);
    panel.setBorder(new EmptyBorder(4, 4, 4, 4));
    panel.setLayout(new BorderLayout());
    panel.add(headerPanel, BorderLayout.NORTH);
    panel.add(licenseLabelScroll, BorderLayout.CENTER);

    return panel;
View Full Code Here

    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

    Border border = BORDER_SHADOW;
    if (outline) {
      border = new CompoundBorder(border, BORDER_THIN);
    }
    if (margin > 0) {
      border = new CompoundBorder(new EmptyBorder(margin, margin, margin, margin), border);
    }
    panel.setBorder(border);
    panel.add(comp, BorderLayout.CENTER);
    return panel;
  }
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.