Browse Source

fixes issue 585 again, its already fixed this removes confusing behaviour

git-svn-id: http://svn.dmdirc.com/branches/0.5.5@3281 00569f92-eb28-0410-84fd-f71c24880f
remotes/0.5.5
Gregory Holmes 16 years ago
parent
commit
babd06ff46
1 changed files with 7 additions and 14 deletions
  1. 7
    14
      src/com/dmdirc/ui/swing/dialogs/aliases/AliasManagerDialog.java

+ 7
- 14
src/com/dmdirc/ui/swing/dialogs/aliases/AliasManagerDialog.java View File

@@ -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);

Loading…
Cancel
Save