1 | private JLabel titleLabel = new JLabel();↵ | | 1 | private JLabel titleLabel = new JLabel();↵
|
|
2 | private JXHyperlink descriptionLabel = new JXHyperlink();↵ | | 2 | private JXHyperlink descriptionLabel = new JXHyperlink();↵
|
|
3 | private JPanel centerPanel;↵ | | 3 | private JPanel centerPanel;↵
|
|
4 | private Border lineBorder = new HeaderSeparatorBorder(new Color(230,↵ | | 4 | private Border lineBorder = new HeaderSeparatorBorder(new Color(230,↵
|
5 | 230, 230));↵ | | 5 | 230, 230));↵
|
|
6 | MyListCellRenderer() {↵ | | 6 | MyListCellRenderer() {↵
|
7 | setLayout(new BorderLayout());↵ | | 7 | setLayout(new BorderLayout());↵
|
|
8 | centerPanel = new JPanel();↵ | | 8 | centerPanel = new JPanel();↵
|
9 | centerPanel.setLayout(new BorderLayout());↵ | | 9 | centerPanel.setLayout(new BorderLayout());↵
|
|
10 | centerPanel.add(titleLabel, BorderLayout.NORTH);↵ | | 10 | centerPanel.add(titleLabel, BorderLayout.NORTH);↵
|
11 | centerPanel.add(descriptionLabel, BorderLayout.CENTER);↵ | | 11 | centerPanel.add(descriptionLabel, BorderLayout.CENTER);↵
|
12 | add(iconLabel, BorderLayout.WEST);↵ | | 12 | add(iconLabel, BorderLayout.WEST);↵
|
13 | add(centerPanel, BorderLayout.CENTER);↵ | | 13 | add(centerPanel, BorderLayout.CENTER);↵
|
|
14 | setBorder(BorderFactory.createCompoundBorder(lineBorder,↵ | | 14 | setBorder(BorderFactory.createCompoundBorder(lineBorder,↵
|
15 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵ | | 15 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵
|
16 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));↵ | | 16 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));↵
|
|
17 | centerPanel.setOpaque(false);↵ | | 17 | centerPanel.setOpaque(false);↵
|
18 | setOpaque(true); | | 18 | setOpaque(true);
|