カルネージハートエクサのチームデータ編集ツール JAVAベース
ウィンドウを閉じるときの確認メッセージを表示するようにした
@@ -393,7 +393,14 @@ | ||
393 | 393 | }//GEN-LAST:event_teamListValueChanged |
394 | 394 | |
395 | 395 | private void exitGUIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitGUIActionPerformed |
396 | - ((JFrame) (getRootPane().getParent())).dispose(); | |
396 | + JFrame frame = (JFrame) (getRootPane().getParent()); | |
397 | + String title = java.util.ResourceBundle. | |
398 | + getBundle("chexaformation/resource").getString("titleExit"); | |
399 | + String mesg = java.util.ResourceBundle. | |
400 | + getBundle("chexaformation/resource").getString("confitmExit"); | |
401 | + if (Main.confirm_box(frame, title, mesg, "") == true) { | |
402 | + frame.dispose(); | |
403 | + } | |
397 | 404 | }//GEN-LAST:event_exitGUIActionPerformed |
398 | 405 | |
399 | 406 | private void removeCHEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeCHEActionPerformed |
@@ -372,7 +372,13 @@ | ||
372 | 372 | |
373 | 373 | private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed |
374 | 374 | JDialog dlg = (JDialog) (getRootPane().getParent()); |
375 | - dlg.dispose(); | |
375 | + String title = java.util.ResourceBundle. | |
376 | + getBundle("chexaformation/resource").getString("titleClose"); | |
377 | + String mesg = java.util.ResourceBundle. | |
378 | + getBundle("chexaformation/resource").getString("confirmClose"); | |
379 | + if (Main.confirm_box(dlg, title, mesg, "") == true) { | |
380 | + dlg.dispose(); | |
381 | + } | |
376 | 382 | }//GEN-LAST:event_closeButtonActionPerformed |
377 | 383 | |
378 | 384 | private void outTextTeamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_outTextTeamActionPerformed |
@@ -453,7 +453,13 @@ | ||
453 | 453 | |
454 | 454 | private void closeTEAMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeTEAMActionPerformed |
455 | 455 | JDialog dlg = (JDialog) (getRootPane().getParent()); |
456 | - dlg.dispose(); | |
456 | + String title = java.util.ResourceBundle. | |
457 | + getBundle("chexaformation/resource").getString("titleClose"); | |
458 | + String mesg = java.util.ResourceBundle. | |
459 | + getBundle("chexaformation/resource").getString("confirmClose"); | |
460 | + if (Main.confirm_box(dlg, title, mesg, "") == true) { | |
461 | + dlg.dispose(); | |
462 | + } | |
457 | 463 | }//GEN-LAST:event_closeTEAMActionPerformed |
458 | 464 | |
459 | 465 | private void addOKEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addOKEActionPerformed |