public class ButtonWithMnemonic extends JButton { /** * default constructor * */ public ButtonWithMnemonic() { super(); } /** * @param str text including a mnemonic */ public ButtonWithMnemonic(String textWithMnemonic) { super(); // set display text - possible with a mnemonic defined using & MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
public class LabelWithMnemonic extends JLabel { /** * default constructor */ public LabelWithMnemonic() { super(); } /** * @param str text including a mnemonic */ public LabelWithMnemonic(String textWithMnemonic) { super(); // set display text - possible with a mnemonic defined using & MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/ButtonWithMnemonic.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/LabelWithMnemonic.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ButtonWithMnemonic extends JButton {
1
public class LabelWithMnemonic extends JLabel {
2
    /**
2
    /**
3
 * default constructor
3
 * default constructor
4
 *
5
 */
4
 */
6
    public ButtonWithMnemonic() {
5
    public LabelWithMnemonic() {
7
        super();
6
        super();
8
    }
7
    }
9
    /**
8
    /**
10
 * @param str        text including a mnemonic
9
 * @param str        text including a mnemonic
11
 */
10
 */
12
    public ButtonWithMnemonic(String textWithMnemonic) {
11
    public LabelWithMnemonic(String textWithMnemonic) {
13
        super();
12
        super();
14
        // set display text - possible with a mnemonic defined using &
13
        // set display text - possible with a mnemonic defined using &
15
        MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
14
        MnemonicSetter.setTextWithMnemonic(this, textWithMnemonic);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0