• R/O
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

カルネージハートエクサのチームデータ編集ツール JAVAベース


Commit MetaInfo

修订版14 (tree)
时间2015-06-10 01:03:30
作者manjihq

Log Message

ウィンドウを閉じるときの確認メッセージを表示するようにした

更改概述

差异

--- chexaFormation/trunk/src/chexaformation/TeamListPanel.java (revision 13)
+++ chexaFormation/trunk/src/chexaformation/TeamListPanel.java (revision 14)
@@ -393,7 +393,14 @@
393393 }//GEN-LAST:event_teamListValueChanged
394394
395395 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+ }
397404 }//GEN-LAST:event_exitGUIActionPerformed
398405
399406 private void removeCHEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeCHEActionPerformed
--- chexaFormation/trunk/src/chexaformation/MatchDataPanel.java (revision 13)
+++ chexaFormation/trunk/src/chexaformation/MatchDataPanel.java (revision 14)
@@ -372,7 +372,13 @@
372372
373373 private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed
374374 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+ }
376382 }//GEN-LAST:event_closeButtonActionPerformed
377383
378384 private void outTextTeamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_outTextTeamActionPerformed
--- chexaFormation/trunk/src/chexaformation/TeamPanel.java (revision 13)
+++ chexaFormation/trunk/src/chexaformation/TeamPanel.java (revision 14)
@@ -453,7 +453,13 @@
453453
454454 private void closeTEAMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeTEAMActionPerformed
455455 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+ }
457463 }//GEN-LAST:event_closeTEAMActionPerformed
458464
459465 private void addOKEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addOKEActionPerformed