File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarList.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/search/SearchResultList.java | |||
Method name: void MyListCellRenderer()
|
Method name: void MyListCellRenderer()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | setLayout(new BorderLayout());↵ | 1 | setLayout(new BorderLayout());↵ | |
2 | centerPanel = new JPanel();↵ | 2 | centerPanel = new JPanel();↵ | |
3 | centerPanel.setLayout(new BorderLayout());↵ | 3 | centerPanel.setLayout(new BorderLayout());↵ | |
4 | JPanel titlePanel = new JPanel();↵ | 4 | JPanel titlePanel = new JPanel();↵ | |
5 | titlePanel.setLayout(new BorderLayout());↵ | 5 | titlePanel.setLayout(new BorderLayout());↵ | |
6 | titlePanel.add(titleLabel, BorderLayout.WEST);↵ | 6 | titlePanel.add(titleLabel, BorderLayout.WEST);↵ | |
7 | titlePanel.add(startDateLabel, BorderLayout.EAST);↵ | 7 | titlePanel.add(startDateLabel, BorderLayout.EAST);↵ | |
8 | centerPanel.add(titlePanel, BorderLayout.NORTH);↵ | 8 | centerPanel.add(titlePanel, BorderLayout.NORTH);↵ | |
9 | centerPanel.add(descriptionLabel, BorderLayout.CENTER);↵ | 9 | centerPanel.add(descriptionLabel, BorderLayout.CENTER);↵ | |
10 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));↵ | 10 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));↵ | |
11 | add(iconLabel, BorderLayout.WEST);↵ | 11 | add(iconLabel, BorderLayout.WEST);↵ | |
12 | add(centerPanel, BorderLayout.CENTER);↵ | 12 | add(centerPanel, BorderLayout.CENTER);↵ | |
13 | descriptionLabel.setFont(descriptionLabel.getFont().deriveFont(↵ | 13 | descriptionLabel.setFont(descriptionLabel.getFont().deriveFont(↵ | |
14 | Font.ITALIC));↵ | 14 | Font.ITALIC));↵ | |
15 | setBorder(BorderFactory.createCompoundBorder(lineBorder,↵ | 15 | setBorder(BorderFactory.createCompoundBorder(lineBorder,↵ | |
16 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵ | 16 | BorderFactory.createEmptyBorder(2, 2, 2, 2)));↵ | |
17 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));↵ | 17 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));↵ | |
18 | centerPanel.setOpaque(false);↵ | 18 | titlePanel.setOpaque(false);↵ | |
19 | titlePanel.setOpaque(false);↵ | 19 | centerPanel.setOpaque(false);↵ | |
20 | setOpaque(true); | 20 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 209 |
Number of mapped statements | 18 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | setLayout(new BorderLayout()); | 1 | setLayout(new BorderLayout()); | |
2 | centerPanel = new JPanel(); | 2 | centerPanel = new JPanel(); | |
3 | centerPanel.setLayout(new BorderLayout()); | 3 | centerPanel.setLayout(new BorderLayout()); | |
4 | JPanel titlePanel = new JPanel(); | 4 | JPanel titlePanel = new JPanel(); | |
5 | titlePanel.setLayout(new BorderLayout()); | 5 | titlePanel.setLayout(new BorderLayout()); | |
6 | titlePanel.add(titleLabel, BorderLayout.WEST); | 6 | titlePanel.add(titleLabel, BorderLayout.WEST); | |
7 | titlePanel.add(startDateLabel, BorderLayout.EAST); | 7 | titlePanel.add(startDateLabel, BorderLayout.EAST); | |
8 | centerPanel.add(titlePanel, BorderLayout.NORTH); | 8 | centerPanel.add(titlePanel, BorderLayout.NORTH); | |
9 | centerPanel.add(descriptionLabel, BorderLayout.CENTER); | 9 | centerPanel.add(descriptionLabel, BorderLayout.CENTER); | |
10 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2)); | 10 | centerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2)); | |
11 | add(iconLabel, BorderLayout.WEST); | 11 | add(iconLabel, BorderLayout.WEST); | |
12 | add(centerPanel, BorderLayout.CENTER); | 12 | add(centerPanel, BorderLayout.CENTER); | |
13 | descriptionLabel.setFont(descriptionLabel.getFont().deriveFont(Font.ITALIC)); | 13 | descriptionLabel.setFont(descriptionLabel.getFont().deriveFont(Font.ITALIC)); | |
14 | setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); | 14 | setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); | |
15 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8)); | 15 | iconLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8)); | |
16 | centerPanel.setOpaque(false); | 17 | centerPanel.setOpaque(false); | |
17 | titlePanel.setOpaque(false); | 16 | titlePanel.setOpaque(false); | |
18 | setOpaque(true); | 18 | setOpaque(true); |
Row | Violation |
---|