|
@@ -81,10 +81,7 @@ public final class AliasManagerDialog extends StandardDialog implements
|
81
|
81
|
|
82
|
82
|
/** Error detail panel. */
|
83
|
83
|
private AliasPanel aliasDetails;
|
84
|
|
-
|
85
|
|
- /** Buttons pane. */
|
86
|
|
- private JPanel buttonsPanel;
|
87
|
|
-
|
|
84
|
+
|
88
|
85
|
/** Add/edit button. */
|
89
|
86
|
private JButton addButton;
|
90
|
87
|
|
|
@@ -135,7 +132,12 @@ public final class AliasManagerDialog extends StandardDialog implements
|
135
|
132
|
private void initComponents() {
|
136
|
133
|
final TableCellRenderer arrayRenderer = new ArrayCellRenderer();
|
137
|
134
|
final TableCellRenderer conditionRenderer = new ActionConditionCellRenderer();
|
138
|
|
- initButtonsPanel();
|
|
135
|
+
|
|
136
|
+ orderButtons(new JButton(), new JButton());
|
|
137
|
+ addButton = new JButton("Add");
|
|
138
|
+ deleteButton = new JButton("Delete");
|
|
139
|
+
|
|
140
|
+ deleteButton.setEnabled(false);
|
139
|
141
|
|
140
|
142
|
scrollPane = new JScrollPane();
|
141
|
143
|
|
|
@@ -208,15 +210,6 @@ public final class AliasManagerDialog extends StandardDialog implements
|
208
|
210
|
return aliases;
|
209
|
211
|
}
|
210
|
212
|
|
211
|
|
- /** Initialises the button panel. */
|
212
|
|
- private void initButtonsPanel() {
|
213
|
|
- buttonsPanel = new JPanel();
|
214
|
|
-
|
215
|
|
- orderButtons(new JButton(), new JButton());
|
216
|
|
- addButton = new JButton("Add");
|
217
|
|
- deleteButton = new JButton("Delete");
|
218
|
|
- }
|
219
|
|
-
|
220
|
213
|
/** Initialises the listeners. */
|
221
|
214
|
private void initListeners() {
|
222
|
215
|
table.getSelectionModel().addListSelectionListener(this);
|