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