added an "are-u-sure"-dialog to clearall menu

This commit is contained in:
7u83 2017-04-15 08:19:04 +02:00
parent 2b025c40a2
commit a0967a2a42
1 changed files with 5 additions and 0 deletions

View File

@ -864,6 +864,11 @@ public class SeSimApplication extends javax.swing.JFrame {
}//GEN-LAST:event_closeMenuItemActionPerformed
private void clearMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearMenuItemActionPerformed
int dialogResult = JOptionPane.showConfirmDialog(this, "Are you sure?", "Warning", JOptionPane.YES_NO_OPTION);
if (dialogResult != JOptionPane.YES_OPTION) {
return;
}
Globals.clearAll();
}//GEN-LAST:event_clearMenuItemActionPerformed