Volevo aggiungere un messaggio tipo JOptionPane.showConfirmDialog che chiedesse la conferma di voler chiudere il frame.
Regole del Forum