void updatePressed(ActionEvent e,boolean newRoute){
  String uName=_userName.getText();
  Route g=checkNamesOK();
  if (g == null) {
    return;
  }
  g.setUserName(uName);
  g.clearOutputTurnouts();
  g.clearOutputSensors();
  g.clearRouteSensors();
  initializeIncludedList();
  setTurnoutInformation(g);
  setSensorInformation(g);
  g.setOutputScriptName(scriptFile.getText());
  g.setOutputSoundName(soundFile.getText());
  setControlInformation(g);
  curRoute=g;
  finishUpdate();
  status1.setText((newRoute ? Bundle.getMessage("RouteAddStatusCreated") : Bundle.getMessage("RouteAddStatusUpdated")) + ": \"" + uName+ "\" ("+ _includedTurnoutList.size()+ " "+ Bundle.getMessage("Turnouts")+ ", "+ _includedSensorList.size()+ " "+ Bundle.getMessage("Sensors")+ ")");
}

void updatePressed ( ActionEvent e , boolean newRoute ) { String uName = _userName . getText ( ) ; Route g = checkNamesOK ( ) ; if ( g == null ) { return ; } g . setUserName ( uName ) ; g . clearOutputTurnouts ( ) ; g . clearOutputSensors ( ) ; g . clearRouteSensors ( ) ; initializeIncludedList ( ) ; setTurnoutInformation ( g ) ; setSensorInformation ( g ) ; g . setOutputScriptName ( scriptFile . getText ( ) ) ; g . setOutputSoundName ( soundFile . getText ( ) ) ; setControlInformation ( g ) ; curRoute = g ; finishUpdate ( ) ; status1 . setText ( ( newRoute ? Bundle . getMessage ( "RouteAddStatusCreated" ) : Bundle . getMessage ( "RouteAddStatusUpdated" ) ) + ": \"" + uName + "\" (" + _includedTurnoutList . size ( ) + " " + Bundle . getMessage ( "Turnouts" ) + ", " + _includedSensorList . size ( ) + " " + Bundle . getMessage ( "Sensors" ) + ")" ) ; }
responds to the update button - update to route table
