Browse Source

Fixes issue 3679: Error list dialog needs a minimum size

Change-Id: I651bb4ec17d5cbd28830647e6c625bda1c355a9c
Reviewed-on: http://gerrit.dmdirc.com/740
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3
Gregory Holmes 14 years ago
parent
commit
83d5f67576
1 changed files with 13 additions and 5 deletions
  1. 13
    5
      src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorListDialog.java

+ 13
- 5
src/com/dmdirc/addons/ui_swing/dialogs/error/ErrorListDialog.java View File

@@ -76,15 +76,16 @@ public final class ErrorListDialog extends StandardDialog implements
76 76
     /** Row being deleted. */
77 77
     private boolean rowBeingDeleted = false;
78 78
 
79
-    /** 
80
-     * Creates a new instance of ErrorListDialog. 
81
-     * 
79
+    /**
80
+     * Creates a new instance of ErrorListDialog.
81
+     *
82 82
      * @param mainFrame Main frame
83 83
      */
84 84
     public ErrorListDialog(final MainFrame mainFrame) {
85 85
         super(mainFrame, ModalityType.MODELESS);
86 86
 
87 87
         setTitle("DMDirc: Error list");
88
+        setMinimumSize(new Dimension(600, 550));
88 89
 
89 90
         tableModel = new ErrorTableModel();
90 91
 
@@ -195,9 +196,9 @@ public final class ErrorListDialog extends StandardDialog implements
195 196
         }
196 197
     }
197 198
 
198
-    /** 
199
+    /**
199 200
      * {@inheritDoc}.
200
-     * 
201
+     *
201 202
      * @param e Action event
202 203
      */
203 204
     @Override
@@ -275,4 +276,11 @@ public final class ErrorListDialog extends StandardDialog implements
275 276
             deleteAllButton.setEnabled(false);
276 277
         }
277 278
     }
279
+
280
+    /** {@inheritDoc} */
281
+    @Override
282
+    public void display() {
283
+        super.display();
284
+        setSize(new Dimension(600, 550));
285
+    }
278 286
 }

Loading…
Cancel
Save