Properly add all view JComponents to the JPanel in the main JFrame.
[Persons_Comparator.git] / src / EyeView.java
index 38664936de7d52df01382c8e7fab7ff980a3a969..8fbad2603d11a629691351c76e7fceb7d5e09099 100644 (file)
@@ -1,8 +1,12 @@
-public class EyeView {
+import javax.swing.*;
+
+public class EyeView extends JComponent {
     private Eye eyeObj;
 
+    EyeView() {
+    }
+
     /**
-     *
      * @param eyeObj
      */
     EyeView(Eye eyeObj) {
@@ -10,7 +14,6 @@ public class EyeView {
     }
 
     /**
-     *
      * @return
      */
     public Eye getEyeObj() {
@@ -18,7 +21,6 @@ public class EyeView {
     }
 
     /**
-     *
      * @param eyeObj
      */
     public void setEyeObj(Eye eyeObj) {