public void searchPatient() {
        String first = patientCheck_firstName.getText();
        String last = patientCheck_lastName.getText();

        for(int i = 0; i < d.getAppointment().size(); i++) {
            if(d.getAppointment().get(i).getPatient().getFirstName().equals(first) &&
                    d.getAppointment().get(i).getPatient().getLastName().equals(last)) {
                JFrame frame = new JFrame("JOptionPane showMessageDialog component example");
                JOptionPane.showMessageDialog(frame, "Patient Found");

                roomChange_firstName.setText(first);
                roomChange_lastName.setText(last);
                roomChange_roomNumber.setText(""+d.getAppointment().get(i).getRoom().getRoomNum());
            }
        }
    }