}// GEN-LAST:event_cancel
private void deleteRegistration(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_deleteRegistration
String[] entry = jCBRegistrationSelection.getSelectedItem().toString().split(",");
String[] times = entry[2].split(":");
Registration registration = sOps
.getRegistration(entry[0].trim(), entry[1].trim(), Integer.parseInt(times[0].trim()),
Integer.parseInt(times[1].trim()), Integer.parseInt(times[2].trim()));
setRegistrations(sOps.deleteRegistration(registrations, registration));
fillAllRegistrations();
fillRegistrationComboBox();
String lineToRemove = registration.getSwimmer().getName() + ";" + registration.getSwimmer().getBirthYear()
+ ";" + registration.getSwimmer().getAgeGroup() + ";" + registration.getSwimmer().getGender() + ";"
+ registration.getSwimmer().getClub() + ";" + registration.getEvent().getName() + ";"
+ setZero(registration.getMinutes().toString()) + ";" + setZero(registration.getSeconds().toString())
+ ";" + setZero(registration.getmSeconds().toString());
sOps.removeLineFromFile(pathFile.get("core") + (osName.toLowerCase().startsWith("linux") ? "/" : "\\")
+ dataFile.get("registrations"), lineToRemove);
}// GEN-LAST:event_deleteRegistration