Only draw eyes on selection and the full closest person on validation.
[Persons_Comparator.git] / src / EyeView.java
index bc1b89b85665413e51de38360592ba3ede4637f8..48ad0b5636d36d28b8f1cbaa9565d19e7b0d905d 100644 (file)
@@ -48,6 +48,7 @@ public class EyeView extends JPanel implements ListSelectionListener {
     public void valueChanged(ListSelectionEvent listSelectionEvent) {
         Eye currentEye = new Eye((String) getColorsList().getSelectedValue());
         PersonLeftPanel personLeftPanel = MainWindowsView.getInstance().getCurrentPersonView().getPersonPanel().getLeftPanel();
+        personLeftPanel.drawEyes(currentEye.getColor());
     }
 
     private static class EyeCellRenderer extends DefaultListCellRenderer {