Add a MainWindowsView class and use it in the main().
[Persons_Comparator.git] / src / Main.java
index 9467a7a44b4a122eeee37587cea1c8657cde6ce8..6937e91dd1a36423a2ff453374736bc0c5e33605 100644 (file)
@@ -3,10 +3,12 @@ public class Main {
     public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
+        String programName = "Person Comparator";
+
 
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
             public void run() {
-                new HelloWorldSwing("HelloWorldSwing").showGUI();
+                new MainWindowsView(programName).showGUI();
             }
         });
     }