コード例 #1
0
    public IssueSeparatorTableCell(SeparatorList separatorList) {
      this.separatorList = separatorList;

      this.expandButton = new JButton(EXPANDED_ICON);
      this.expandButton.setOpaque(false);
      this.expandButton.setBorder(EMPTY_TWO_PIXEL_BORDER);
      this.expandButton.setIcon(EXPANDED_ICON);
      this.expandButton.setContentAreaFilled(false);

      this.nameLabel.setFont(nameLabel.getFont().deriveFont(10.0f));
      this.nameLabel.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));

      this.expandButton.addActionListener(this);

      this.panel.setBackground(GLAZED_LISTS_LIGHT_BROWN);
      this.panel.add(expandButton, BorderLayout.WEST);
      this.panel.add(nameLabel, BorderLayout.CENTER);
    }