Properly add all view JComponents to the JPanel in the main JFrame.
[Persons_Comparator.git] / src / EyeView.java
CommitLineData
089fcbfc
JB
1import javax.swing.*;
2
3public class EyeView extends JComponent {
6977e614
JB
4 private Eye eyeObj;
5
089fcbfc
JB
6 EyeView() {
7 }
8
ac6c3ea2 9 /**
ac6c3ea2
JB
10 * @param eyeObj
11 */
6977e614
JB
12 EyeView(Eye eyeObj) {
13 setEyeObj(eyeObj);
14 }
15
ac6c3ea2 16 /**
ac6c3ea2
JB
17 * @return
18 */
6977e614
JB
19 public Eye getEyeObj() {
20 return eyeObj;
21 }
22
ac6c3ea2 23 /**
ac6c3ea2
JB
24 * @param eyeObj
25 */
6977e614
JB
26 public void setEyeObj(Eye eyeObj) {
27 this.eyeObj = eyeObj;
28 }
29}