Examples of EmptyBorder


Examples of javax.swing.border.EmptyBorder

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

      PropertyWidget<?> propertyWidget = _propertyWidgetFactory.create(propertyDescriptor);
View Full Code Here

Examples of javax.swing.border.EmptyBorder

  private DCPanel createDecoration(JComponent renderedResult) {
    renderedResult.setBorder(WidgetUtils.BORDER_SHADOW);
    final DCPanel wrappingPanel = new DCPanel();
    wrappingPanel.setLayout(new BorderLayout());
    wrappingPanel.add(renderedResult, BorderLayout.CENTER);
    wrappingPanel.setBorder(new EmptyBorder(4, 20, 4, 4));
    return wrappingPanel;
  }
View Full Code Here

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

Examples of org.apache.isis.viewer.dnd.view.border.EmptyBorder

                        return null;
                    }

                    @Override
                    public View decorate(final Axes axes, final View view) {
                        return new EmptyBorder(0, 0, 5, 0, view);
                    }
                });
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.