Esempio n. 1
0
  public Header getClone(String title, Icon icon, Component controls) {

    Header n = new Header(title, icon, controls);

    n.setTitleColor(this.label.getForeground());
    n.setPaintProvider(this.getPaintProvider().getClone());
    n.setFont(this.label.getFont());

    return n;
  }
Esempio n. 2
0
  public static Header createBoldSubHeader(String title, ImageIcon icon) {

    Header h = new Header(title, ((icon == null) ? null : icon), null);

    h.setFont(h.getFont().deriveFont(Font.BOLD, 12f));
    // h.setTitleColor (Color.BLACK);
    // h.setOpaque (false);
    // h.setBackground (new Color (0, 0, 0, 0));
    // h.setPaintProvider (null);

    h.setAlignmentX(Component.LEFT_ALIGNMENT);

    h.setBorder(new EmptyBorder(3, 3, 3, 3));

    return h;
  }