private void lslPatientsMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lslPatientsMousePressed
        // TODO add your handling code here:
        int n = -1;
        if (ReturnedPatients.size()<=0)
            return;
        try
        {
            n = lslPatients.getSelectedIndex();
        }
        catch(Exception e)
        {
            n = -1;
        }
        if (n<0) return;
        
        Patient p = (Patient)ReturnedPatients.get(n);
        if ((p.DoctorID.equals(ThisUser.UserID))||(ThisUser.UserType==User.U_Types.ADMIN))
            ShowPInfo(p);    
        else
        {
            ShowPInfo(new Patient());
            tbxError.setText("Not your patient. Permission denied.");
        }
    }