private void submitRoomChange() {
        String roomChangeFirstName = roomChange_firstName.getText();
        String roomChangeLastName = roomChange_lastName.getText();
        String roomChangeReason = roomChange_reason.getText();

        for(int i = 0; i < d.getAppointment().size(); i++) {
            if(d.getAppointment().get(i).getPatient().getFirstName().equals(roomChangeFirstName) &&
                    d.getAppointment().get(i).getPatient().getLastName().equals(roomChangeLastName)) {

                d.getAppointment().get(i).getRoom().setNewRoom(roomChange_newRoomComboBox.getSelectedItem().hashCode());
                d.getAppointment().get(i).getRoom().setReasonForNewRoom(roomChangeReason);

                JFrame frame = new JFrame("JOptionPane showMessageDialog component example");
                JOptionPane.showMessageDialog(frame, "Room Changed");

                System.out.println(d.getAppointment().get(i).getRoom().getNewRoom());
                System.out.println(d.getAppointment().get(i).getRoom().getReasonForNewRoom());
            }
        }
    }