3 public class EyeView
extends JComponent
{
6 private JList colorsList
;
13 this.label
= new JLabel();
14 this.label
.setText("Eyes color");
15 this.colorsList
= new JList(getEyeObj().getColorsList());
16 this.colorsList
.setSelectionMode(ListSelectionModel
.SINGLE_SELECTION
);
17 this.colorsList
.setLayoutOrientation(JList
.VERTICAL
);
25 public Eye
getEyeObj() {
32 public void setEyeObj(Eye eyeObj
) {