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