public void updateComboBox(JComboBox<Automation> box){
  box.removeAllItems();
  box.addItem(null);
  for (  Automation automation : getAutomationsByNameList()) {
    box.addItem(automation);
  }
}

public void updateComboBox ( JComboBox < Automation > box ) { box . removeAllItems ( ) ; box . addItem ( null ) ; for ( Automation automation : getAutomationsByNameList ( ) ) { box . addItem ( automation ) ; } }
update a jcombobox with the latest automations .
