repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an ArrayList of persons to the Person class.
[Persons_Comparator.git]
/
src
/
EyeView.java
diff --git
a/src/EyeView.java
b/src/EyeView.java
index aa54c8b8d76bdf0109e9fc294d8a21d63feacf63..ad0c2fa81fd22f50313e121369e9e1330885ca1f 100644
(file)
--- a/
src/EyeView.java
+++ b/
src/EyeView.java
@@
-5,8
+5,11
@@
public class EyeView extends JComponent {
private JLabel label;
private JList colorsList;
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());
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);
}
add(colorsList);
}
- /**
- * @param eyeObj
- */
- EyeView(Eye eyeObj) {
- setEyeObj(eyeObj);
- }
-
/**
* @return
*/
/**
* @return
*/