private void formWindowClosing(java.awt.event.WindowEvent evt) {
// TODO add your handling code here:
int ZakApp = TCreateComponents.komunikat.KomunikatZapytanie("Czy napewno chcesz zakończyć applikację?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
if (ZakApp==0){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
} else {
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
}
}