added an "are-u-sure"-dialog to clearall menu
This commit is contained in:
parent
2b025c40a2
commit
a0967a2a42
@ -864,6 +864,11 @@ public class SeSimApplication extends javax.swing.JFrame {
|
|||||||
}//GEN-LAST:event_closeMenuItemActionPerformed
|
}//GEN-LAST:event_closeMenuItemActionPerformed
|
||||||
|
|
||||||
private void clearMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearMenuItemActionPerformed
|
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();
|
Globals.clearAll();
|
||||||
}//GEN-LAST:event_clearMenuItemActionPerformed
|
}//GEN-LAST:event_clearMenuItemActionPerformed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user