1 | private void addRemoveMultiLineCommentCheckBox(JPanel panel, int col, int row)↵ | | 1 | private void addDelayRecordsTextField(JPanel panel, int col, int row)↵
|
2 | {↵ | | |
|
3 | ↵ | | 2 | {↵
|
4 | GridBagConstraints c = new GridBagConstraints();↵ | | 3 | GridBagConstraints c = new GridBagConstraints();↵
|
5 | c.gridx = col;↵ | | 4 | c.gridx = col;↵
|
6 | c.gridy = row;↵ | | 5 | c.gridy = row;↵
|
7 | c.gridwidth = 2; // Span across two columns↵ | | |
|
8 | ↵ | | 6 | ↵
|
| | | 7 | c.ipadx = 40; // Increases component width by 40 pixels↵
|
9 | c.insets = new Insets(5, 30, 0, 0);↵ | | 8 | c.insets = new Insets(5,5,0,0);↵
|
10 | String cbLabel = i18n.REMOVE_ML_COMMENT_LABEL;↵ | | |
|
11 | removeMultiLineCommentCheckBox = new JCheckBox(cbLabel);↵ | | |
|
12 | removeMultiLineCommentCheckBox.setToolTipText(i18n.REMOVE_ML_COMMENT_LABEL_TT);↵ | | |
|
13 | panel.add(removeMultiLineCommentCheckBox, c);↵ | | |
|
14 | | | 9 | c.anchor = GridBagConstraints.WEST;↵
|
| | | 10 | delayRecordsTextField = new JTextField(10);↵
|
| | | 11 | ↵
|
| | | 12 | delayRecordsTextField.setHorizontalAlignment(JTextField.RIGHT);↵
|
| | | 13 | panel.add(delayRecordsTextField, c); ↵
|
| | | 14 |
|