setLayout(new BorderLayout()); getContentPane().add( new DialogHeaderPanel("Recurrence", "Edit Recurrence Properties", ImageLoader .getIcon(IconKeys.USER)), BorderLayout.NORTH); getContentPane().add(createPanel(), BorderLayout.CENTER); getContentPane().add(createButtonPanel(), BorderLayout.SOUTH); getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); updateComponents(true); pack(); setLocationRelativeTo(null); setVisible(true);
setLayout(new BorderLayout()); getContentPane().add( new DialogHeaderPanel("New Appointment", "Edit Appointment Properties", ImageLoader .getIcon(IconKeys.USER)), BorderLayout.NORTH); getContentPane().add(createPanel(), BorderLayout.CENTER); getContentPane().add(createButtonPanel(), BorderLayout.SOUTH); getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); updateComponents(true); pack(); setLocationRelativeTo(null); setVisible(true);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/EditEventDialog.java
Method name: void RecurrenceDialog(Frame, IEventInfo) Method name: void EditEventDialog(JFrame, IEventInfo)
Number of AST nodes: 9 Number of AST nodes: 9
1
setLayout(new BorderLayout());
1
setLayout(new BorderLayout());
2
		getContentPane().add(
2
		getContentPane().add(
3
				new DialogHeaderPanel("Recurrence",
3
				new DialogHeaderPanel("New Appointment",
4
						"Edit Recurrence Properties", ImageLoader
4
						"Edit Appointment Properties", ImageLoader
5
								.getIcon(IconKeys.USER)),
5
								.getIcon(IconKeys.USER)),
6
				BorderLayout.NORTH);
6
				BorderLayout.NORTH);
7
		getContentPane().add(createPanel(), BorderLayout.CENTER);
7
		getContentPane().add(createPanel(), BorderLayout.CENTER);
8
		getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
8
		getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
9

10
		getRootPane().registerKeyboardAction(this, "CANCEL",
9
		getRootPane().registerKeyboardAction(this, "CANCEL",
11
				KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
10
				KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
12
				JComponent.WHEN_IN_FOCUSED_WINDOW);
11
				JComponent.WHEN_IN_FOCUSED_WINDOW);
13

14
		updateComponents(true);
12
		updateComponents(true);
15

16
		pack();
13
		pack();
17
		setLocationRelativeTo(null);
14
		setLocationRelativeTo(null);
18
		setVisible(true);
15
		setVisible(true);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons81
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    setLayout(new BorderLayout());
    21
    setLayout(new BorderLayout());
    5
    getContentPane().add(new DialogHeaderPanel("Recurrence", "Edit Recurrence Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH);
    5
    getContentPane().add(new DialogHeaderPanel("Recurrence", "Edit Recurrence Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH);
    22
    getContentPane().add(new DialogHeaderPanel("New Appointment", "Edit Appointment Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH);
    Differences
    Expression1Expression2Difference
    "Recurrence""New Appointment"LITERAL_VALUE_MISMATCH
    "Edit Recurrence Properties""Edit Appointment Properties"LITERAL_VALUE_MISMATCH
    22
    getContentPane().add(new DialogHeaderPanel("New Appointment", "Edit Appointment Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH);
    6
    getContentPane().add(createPanel(), BorderLayout.CENTER);
    23
    getContentPane().add(createPanel(), BorderLayout.CENTER);
    7
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    24
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    8
    getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW);
    25
    getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW);
    9
    updateComponents(true);
    26
    updateComponents(true);
    10
    pack();
    27
    pack();
    11
    setLocationRelativeTo(null);
    28
    setLocationRelativeTo(null);
    12
    setVisible(true);
    29
    setVisible(true);
    Precondition Violations (0)
    Row Violation