X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FMainWindowsView.java;h=85470ff4636bc67730f5ca54eff5d8e34cc38af9;hb=c8da8eb79910c7ea33dc2970ebd8d1d1db234a89;hp=406fcd58f18a8783375fa37e1670ff287367bd3a;hpb=476910abd64760223f3e4143866134e49facf487;p=Persons_Comparator.git diff --git a/src/MainWindowsView.java b/src/MainWindowsView.java index 406fcd5..85470ff 100644 --- a/src/MainWindowsView.java +++ b/src/MainWindowsView.java @@ -11,7 +11,7 @@ public class MainWindowsView extends JFrame { MainWindowsView(String title, JPanel panel) { //Create and set up the window. setTitle(title); - setSize(300, 300); + setSize(panel.getPreferredSize()); setLocationRelativeTo(null); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);