public void updateComboBox(JComboBox<Schedule> box){
  box.removeAllItems();
  box.addItem(null);
  for (  Schedule schedule : getSchedulesByNameList()) {
    box.addItem(schedule);
  }
}

public void updateComboBox ( JComboBox < Schedule > box ) { box . removeAllItems ( ) ; box . addItem ( null ) ; for ( Schedule schedule : getSchedulesByNameList ( ) ) { box . addItem ( schedule ) ; } }
update a jcombobox with the latest schedules .
