Package javax.swing.border

Examples of javax.swing.border.CompoundBorder


    public AspectTest() {
        factory = new MediaPlayerFactory();
        mediaPlayer = factory.newEmbeddedMediaPlayer();

        videoPane = new JPanel();
        videoPane.setBorder(new CompoundBorder(new LineBorder(Color.black, 2), new EmptyBorder(16, 16, 16, 16)));
        videoPane.setLayout(new BorderLayout());
        videoPane.setBackground(Color.white);

        videoCanvas = new Canvas();
        videoCanvas.setBackground(Color.red);
View Full Code Here


    public CropTest() {
        factory = new MediaPlayerFactory();
        mediaPlayer = factory.newEmbeddedMediaPlayer();

        videoPane = new JPanel();
        videoPane.setBorder(new CompoundBorder(new LineBorder(Color.black, 2), new EmptyBorder(16, 16, 16, 16)));
        videoPane.setLayout(new BorderLayout());
        videoPane.setBackground(Color.white);

        videoCanvas = new Canvas();
        videoCanvas.setBackground(Color.red);
View Full Code Here

    endB.setName(ACTION_END);
    endB.addActionListener(listener);

    ctrlPanel.add(endB);
   
    ctrlPanel.setBorder(new CompoundBorder(new TitledBorder(null, null, TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    return ctrlPanel;
  }
View Full Code Here

  private JPanel createHeaderPanel() {
    final JPanel header = new JPanel();

    header.add(new JLabel("<html><div align=\"center\"><font size=\"+1\" color=\"white\">"+"Assistant of installation"+"</font></div></html>"));//$NON-NLS-1$//$NON-NLS-3$
    header.setBackground(new Color(90, 100, 130));
    header.setBorder(new CompoundBorder(new TitledBorder(null, null, TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    return header;
  }
View Full Code Here

    final WidgetMiniToolbar list = new WidgetMiniToolbar(LResources.AXES_ICON, WidgetMiniToolbar.LOCATION_NORTH, canvas);
    list.setToolTipText(LangTool.INSTANCE.getStringActions("PropBuilder.3")); //$NON-NLS-1$
    final MPanel panel     = new MPanel(false, true);
    final MPanel ticksPanel = new MPanel(false, true);

    ticksPanel.setBorder(new CompoundBorder(new TitledBorder(null, LangTool.INSTANCE.getString18("ParametersAxeFrame.17"), //$NON-NLS-1$
          TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    panel.add(cust.getShapeAxes());

    UIBuilder.addCombobox(ticksPanel, cust.getShapeTicks());
View Full Code Here

        } else {
            insideBorder = new EmptyBorder(3, 5, 3, 5);
            insideBorderFocused = new EmptyBorder(2, 4, 2, 4);

            defaultBorder = insideBorder;
            focusBorder = new CompoundBorder(new RoundedLineBorder(new JBColor(Gray._190, Gray._55), 3), insideBorderFocused);
        }

        label = new JLabel(text, cropIcon(icon), SwingConstants.LEFT);
        label.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        label.addMouseListener(mouseListener);
View Full Code Here

    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
        if (column == 2) {
            Color color = (Color) value;
            if (color == null) color = Color.WHITE;
            setBackground(color);
            setBorder(new CompoundBorder(new LineBorder(Color.WHITE), new ColoredSideBorder(color.brighter(), color.brighter(), color.darker(), color.darker(), 1)));
        } else {
            String stringValue = (String) value;
            if (StringUtil.isNotEmpty(stringValue)) {
                append(stringValue, SimpleTextAttributes.REGULAR_ATTRIBUTES);
            }
View Full Code Here

    public ObjectHierarchyPanel(DBObject object) {
        super();
        setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        Color color = new Color(255, 255, 239);
        setBackground(color);
        Border border = new CompoundBorder(
                new LineBorder(Color.GRAY, 1, false),
                new LineBorder(color, 4, false));
        setBorder(border);
        this.object = object;
View Full Code Here

  {
    Border margin = new EmptyBorder(5, 10, 10, 10);

    JPanel tempPanel = new JPanel();
    tempPanel.setLayout(new VerticalLayout(0, VerticalLayout.CENTER));
    tempPanel.setBorder(new CompoundBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("headers_stored")), margin));

    // create the JTable that holds header per row
    headerTable = new JTable(tableModel);
    headerTable.addFocusListener(this);
    headerTable.setCellSelectionEnabled(true);
View Full Code Here

  {
    Border margin = new EmptyBorder(5, 10, 10, 10);

    JPanel tempPanel = new JPanel();
    tempPanel.setLayout(new VerticalLayout(0, VerticalLayout.CENTER));
    tempPanel.setBorder(new CompoundBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("cookies_stored")), margin));

    // create the JTable that holds one cookie per row
    cookieTable = new JTable(tableModel);
    cookieTable.setCellSelectionEnabled(true);
    cookieTable.setRowSelectionAllowed(true);
View Full Code Here

TOP

Related Classes of javax.swing.border.CompoundBorder

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.