1 | toolbarBackgroundColorChk.addActionListener(new ActionListener()↵ | | 1 | autoCommitCheckBox.addActionListener(new ActionListener()↵
|
2 | {↵ | | |
|
|
3 | @Override↵ | | |
|
4 | ↵ | | 2 | {↵
|
5 | public void actionPerformed(ActionEvent e)↵ | | 3 | public void actionPerformed(ActionEvent e)↵
|
6 | {↵ | | |
|
7 | if (toolbarBackgroundColorChk.isSelected())↵ | | |
|
8 | {↵ | | |
|
9 | toolbarBackgroundColorBtn.setEnabled(true);↵ | | |
|
10 | toolbarBackgroundColorPnl.setEnabled(true);↵ | | |
|
11 | toolBarBackgroundLbl.setEnabled(true);↵ | | |
|
12 | }↵ | | |
|
13 | else↵ | | |
|
14 | {↵ | | |
|
15 | toolbarBackgroundColorBtn.setEnabled(false);↵ | | |
|
16 | toolbarBackgroundColorPnl.setEnabled(false);↵ | | |
|
17 | toolBarBackgroundLbl.setEnabled(false);↵ | | |
|
18 | }↵ | | |
|
19 | }↵ | | |
|
20 | ↵ | | 4 | {↵
|
| | | 5 | if (autoCommitCheckBox.isSelected()) {↵
|
| | | 6 | commitRecordCountLabel.setEnabled(false);↵
|
| | | 7 | commitRecordCountTextField.setEnabled(false);↵
|
| | | 8 | commitAfterCreateTableCheckBox.setEnabled(false);↵
|
| | | 9 | } else {↵
|
| | | 10 | commitRecordCountLabel.setEnabled(true);↵
|
| | | 11 | commitRecordCountTextField.setEnabled(true);↵
|
| | | 12 | commitAfterCreateTableCheckBox.setEnabled(true);↵
|
| | | 13 | }↵
|
| | | 14 | }↵
|
21 | }); | | 15 | });
|