But all person displaying related information into the View and add a panel for the...
[Persons_Comparator.git] / src / MainWindowsView.java
index 58a37fb435f4a011af37a213a5adcdab9f9004c1..85470ff4636bc67730f5ca54eff5d8e34cc38af9 100644 (file)
@@ -11,7 +11,7 @@ public class MainWindowsView extends JFrame {
     MainWindowsView(String title, JPanel panel) {
         //Create and set up the window.
         setTitle(title);
-        setSize(400, 300);
+        setSize(panel.getPreferredSize());
         setLocationRelativeTo(null);
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);