Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / OriginView.java
index 2402e5fea6232f49326437c443ec1c4b1bb3a611..695a90cc53b7e41e9d53c50d4c770a91c36fb62d 100644 (file)
@@ -4,16 +4,13 @@ public class OriginView extends JComponent {
     private Origin originObj;
     private JLabel label;
 
-    OriginView() {
+    OriginView(Origin originObj) {
+        setOriginObj(originObj);
         this.label = new JLabel();
         this.label.setText("Origin");
         add(label);
     }
 
-    OriginView(Origin originObj) {
-        setOriginObj(originObj);
-    }
-
     public Origin getOriginObj() {
         return originObj;
     }