@Override
    protected void fillComponentsInEditorPanel(int rowSelected) {
        nameTextField.setText(getValueAt(rowSelected, 1).toString());
        yearSpinner.setValue(Short.valueOf(getValueAt(rowSelected, 2).toString()));
        strengthSpinner.setValue(getValueAt(rowSelected, 3));
        
        String speciality = getValueAt(rowSelected, 4).toString();
        int index = 0;
        for (int i = 0; i < specialities.length; i++) {
            if (speciality.endsWith(specialities[i].getName())) {
                index = i;
            }
        }
        specialityComboBox.setSelectedIndex(index);
        
        String department = getValueAt(rowSelected, 5).toString();
        index = 0;
        for (int i = 0; i < departments.length; i++) {
            if (department.endsWith(departments[i].getName())) {
                index = i;
            }
        }
        departmentComboBox.setSelectedIndex(index);
        
        String form = getValueAt(rowSelected, 3).toString();
        index = 0;
        for (int i = 0; i < educationForms.length; i++) {
            if (form.endsWith(educationForms[i].getType())) {
                index = i;
            }
        }
        educationFormComboBox.setSelectedIndex(index);
    }