private void createMoveAssignmentOfPeriodButtonButtonListeners() {
   moveAssignmentOfPeriodButton.addActionListener(
       anEvent ->
           withConfirmation(
               "Cambio de período",
               "¿Desea cambiar el período de la asignación?",
               () -> {
                 department.moveAssignmentOfPeriod(assignment, period);
                 dispose();
               }));
 }
 private void createClassroomsTable() {
   ReadOnlyTableModel<Classroom> tableModel =
       new ReadOnlyTableModel<>(department.getClassroomsDepartment().searchClassroomByName(""));
   addClassroomsColumns(tableModel);
   classroomsTable = new JTable(tableModel);
   classroomsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
   classroomsTable
       .getSelectionModel()
       .addListSelectionListener(EditAssignmentWindow.this::whenClassroomsTableSelectionChanged);
   classroomsTableScrollPane = new JScrollPane(classroomsTable);
 }
 private void createMoveAssignmentOfClassroomButtonButtonListeners() {
   moveAssignmentOfClassroomButton.addActionListener(
       anEvent ->
           withConfirmation(
               "Cambio de aula",
               "¿Desea cambiar la asignación al aula elegida?",
               () -> {
                 department.moveAssignmentOfClassroom(assignment, classroomSelected);
                 dispose();
               }));
 }