private void addDelayTablesTextField(JPanel panel, int col, int row) {
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.ipadx = 40; // Increases component width by 40 pixels
c.insets = new Insets(5,5,0,0);
c.anchor = GridBagConstraints.WEST;
delayTablesTextField = new JTextField(10);
delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT);
panel.add(delayTablesTextField, c);
private void addDelayRecordsTextField(JPanel panel, int col, int row) {
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.ipadx = 40; // Increases component width by 40 pixels
c.insets = new Insets(5,5,0,0);
c.anchor = GridBagConstraints.WEST;
delayRecordsTextField = new JTextField(10);
delayRecordsTextField.setHorizontalAlignment(JTextField.RIGHT);
panel.add(delayRecordsTextField, c);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java
|
|
File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private void addDelayTablesTextField(JPanel panel, int col, int row) {↵ | | 1 | private void addDelayRecordsTextField(JPanel panel, int col, int row) {↵
|
2 | GridBagConstraints c = new GridBagConstraints();↵ | | 2 | GridBagConstraints c = new GridBagConstraints();↵
|
3 | c.gridx = col;↵ | | 3 | c.gridx = col;↵
|
4 | c.gridy = row; ↵ | | 4 | c.gridy = row; ↵
|
5 | c.ipadx = 40; // Increases component width by 40 pixels↵ | | 5 | c.ipadx = 40; // Increases component width by 40 pixels↵
|
6 | c.insets = new Insets(5,5,0,0);↵ | | 6 | c.insets = new Insets(5,5,0,0);↵
|
7 | c.anchor = GridBagConstraints.WEST;↵ | | 7 | c.anchor = GridBagConstraints.WEST;↵
|
8 | delayTablesTextField = new JTextField(10);↵ | | 8 | delayRecordsTextField = new JTextField(10);↵
|
9 | ↵ | | 9 | ↵
|
10 | delayTablesTextField.setHorizontalAlignment(JTextField.RIGHT);↵ | | 10 | delayRecordsTextField.setHorizontalAlignment(JTextField.RIGHT);↵
|
11 | panel.add(delayTablesTextField, c); ↵ | | 11 | panel.add(delayRecordsTextField, c); ↵
|
12 | | | 12 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |