private void jBGenerateResultsActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jBGenerateResultsActionPerformed
try {
JFrame mainFrame = SwimRaceOrganizerApp.getApplication().getMainFrame();
setPoolType(settingsWindow.getPoolType());
// setCompetitionName(settingsWindow.getCompetitionName());
generateHeatResults = new HeatResultGenerator(poolType, competitionName, "Generate Results");
generateHeatResults.setLocationRelativeTo(mainFrame);
SwimRaceOrganizerApp.getApplication().show(generateHeatResults);
} catch (NullPointerException e) {
JOptionPane.showMessageDialog(null, "Trebuie completate setarile pt a purcede!", "Atentie!!!", 1);
}