setContentPane(new JPanel(new BorderLayout()) { /** * Returns if this component can be traversed by pressing the * Tab key. This returns false. */ public boolean isManagingFocus() { return false; } /** * Makes the tab key work in Java 1.4. */ public boolean getFocusTraversalKeysEnabled() { return false; } });
setContentPane(new JPanel(new BorderLayout()) { /** * Returns if this component can be traversed by pressing the * Tab key. This returns false. */ public boolean isManagingFocus() { return false; } /** * Makes the tab key work in Java 1.4. */ public boolean getFocusTraversalKeysEnabled() { return false; } });
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ActionBar.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CompleteWord.java
Method name: void CompletionPopup(String[]) Method name: void CompleteWord(View, String, Completion[], Point, String)
Number of AST nodes: 1 Number of AST nodes: 1
1
setContentPane(new JPanel(new BorderLayout())
1
setContentPane(new JPanel(new BorderLayout())
2
			{
2
		{
3
				/**
3
			/**
4
				 * Returns if this component can be traversed by pressing the
4
			 * Returns if this component can be traversed by pressing the
5
				 * Tab key. This returns false.
5
			 * Tab key. This returns false.
6
				 */
6
			 */
7
				public boolean isManagingFocus()
7
			public boolean isManagingFocus()
8
				{
8
			{
9
					return false;
9
				return false;
10
				}
10
			}
11
				/**
11
			/**
12
				 * Makes the tab key work in Java 1.4.
12
			 * Makes the tab key work in Java 1.4.
13
				 */
13
			 */
14
				public boolean getFocusTraversalKeysEnabled()
14
			public boolean getFocusTraversalKeysEnabled()
15
				{
15
			{
16
					return false;
16
				return false;
17
				}
17
			}
18
			});
18
		});
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 comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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 1
    Mapped Statements
    ID Statement ID Statement
    2
    setContentPane(new JPanel(new BorderLayout()) {...});
    3
    setContentPane(new JPanel(new BorderLayout()) {...});
    Precondition Violations (0)
    Row Violation