public void valueChanged(ListSelectionEvent e) {
        if (!e.getValueIsAdjusting()) {
            if (this.MOPanel.getSelectedIndex() == 0 &&
                    doctorList.getSelectedIndex() >= 0 &&
                    e.getSource() == doctorList) {
                String st = doctorList.getSelectedValue().toString();
                function.staffPersonalInfo(doctor, st, docTF);
                function.staffListHosp(doctor, st, this.listModelHosp);
            } else if (this.MOPanel.getSelectedIndex() == 0 &&
                    this.hospDoctorList.getSelectedIndex() >= 0 &&
                    e.getSource() == this.hospDoctorList) {
                String st = doctorList.getSelectedValue().toString();
                function.checkSchedule(doctor, st, this.docHospTP, this.hospDoctorList);
            }
        }
    }