Add an ArrayList of persons to the Person class.
[Persons_Comparator.git] / src / EyeView.java
index aa54c8b8d76bdf0109e9fc294d8a21d63feacf63..ad0c2fa81fd22f50313e121369e9e1330885ca1f 100644 (file)
@@ -5,8 +5,11 @@ public class EyeView extends JComponent {
     private JLabel label;
     private JList colorsList;
 
-    EyeView() {
-        setEyeObj(new Eye());
+    /**
+     * @param eyeObj
+     */
+    EyeView(Eye eyeObj) {
+        setEyeObj(eyeObj);
         this.label = new JLabel();
         this.label.setText("Eyes color");
         this.colorsList = new JList(getEyeObj().getColorsList());
@@ -16,13 +19,6 @@ public class EyeView extends JComponent {
         add(colorsList);
     }
 
-    /**
-     * @param eyeObj
-     */
-    EyeView(Eye eyeObj) {
-        setEyeObj(eyeObj);
-    }
-
     /**
      * @return
      */