File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AddressListDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/export/ExportDialog.java | |||
Method name: JPanel createPanel()
|
Method name: JPanel createPanel()
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | JPanel jpanel1 = new JPanel();↵ | 1 | JPanel jpanel1 = new JPanel();↵ | |
2 | FormLayout formlayout1 = new FormLayout(↵ | 2 | FormLayout formlayout1 = new FormLayout(↵ | |
3 | "FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE",↵ | 3 | "FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE",↵ | |
4 | "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE");↵ | 4 | "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE");↵ | |
5 | CellConstraints cc = new CellConstraints();↵ | 5 | CellConstraints cc = new CellConstraints();↵ | |
6 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | 6 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | |
7 | jpanel1.setLayout(formlayout1);↵ | 7 | jpanel1.setLayout(formlayout1);↵ | |
8 | JLabel jlabel1 = new JLabel();↵ | 8 | JLabel jlabel1 = new JLabel();↵ | |
9 | jlabel1.setText("Email Address:");↵ | 9 | jlabel1.setText("Select Folders:");↵ | |
10 | jpanel1.add(jlabel1, cc.xy(1, 1));↵ | 10 | jpanel1.add(jlabel1, cc.xy(1, 1));↵ | |
11 | JScrollPane scrollPane = new JScrollPane(list);↵ | 11 | JScrollPane scrollPane = new JScrollPane(tree);↵ | |
12 | scrollPane.setPreferredSize(new Dimension(250, 200));↵ | 12 | scrollPane.setPreferredSize(new Dimension(350, 250));↵ | |
13 | jpanel1.add(scrollPane, cc.xy(1, 3));↵ | 13 | jpanel1.add(scrollPane, cc.xy(1, 3));↵ | |
14 | jpanel1.add(createEastPanel(), new CellConstraints(3, 3, 1, 1,↵ | 14 | jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1,↵ | |
15 | CellConstraints.DEFAULT, CellConstraints.TOP));↵ | 15 | CellConstraints.DEFAULT, CellConstraints.TOP));↵ | |
16 | return jpanel1; | 16 |
| |
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 | 60 |
Number of mapped statements | 13 |
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 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel jpanel1 = new JPanel(); | 1 | JPanel jpanel1 = new JPanel(); | ||||||||||||||
2 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); | 2 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),3DLU,FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,1DLU,FILL:DEFAULT:GROW(1.0),3DLU,CENTER:DEFAULT:NONE"); | ||||||||||||||
3 | CellConstraints cc = new CellConstraints(); | 3 | CellConstraints cc = new CellConstraints(); | ||||||||||||||
4 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | 4 | jpanel1.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | ||||||||||||||
5 | jpanel1.setLayout(formlayout1); | 5 | jpanel1.setLayout(formlayout1); | ||||||||||||||
6 | JLabel jlabel1 = new JLabel(); | 6 | JLabel jlabel1 = new JLabel(); | ||||||||||||||
7 | jlabel1.setText("Email Address:"); |
| 7 | jlabel1.setText("Select Folders:"); | |||||||||||||
8 | jpanel1.add(jlabel1, cc.xy(1, 1)); | 8 | jpanel1.add(jlabel1, cc.xy(1, 1)); | ||||||||||||||
9 | JScrollPane scrollPane = new JScrollPane(list); |
| 9 | JScrollPane scrollPane = new JScrollPane(tree); | |||||||||||||
10 | scrollPane.setPreferredSize(new Dimension(250, 200)); |
| 10 | scrollPane.setPreferredSize(new Dimension(350, 250)); | |||||||||||||
11 | jpanel1.add(scrollPane, cc.xy(1, 3)); | 11 | jpanel1.add(scrollPane, cc.xy(1, 3)); | ||||||||||||||
12 | jpanel1.add(createEastPanel(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); |
| 12 | jpanel1.add(createPanel1(), new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP)); | |||||||||||||
13 | return jpanel1; | 13 | return jpanel1; |
Row | Violation |
---|