Takuya Ono
takuy****@users*****
2007年 8月 21日 (火) 00:04:22 JST
Index: BetaProject/src/org/jent/checksmtp/ToListUI.java diff -u BetaProject/src/org/jent/checksmtp/ToListUI.java:1.7 BetaProject/src/org/jent/checksmtp/ToListUI.java:1.8 --- BetaProject/src/org/jent/checksmtp/ToListUI.java:1.7 Sat Aug 18 04:14:57 2007 +++ BetaProject/src/org/jent/checksmtp/ToListUI.java Tue Aug 21 00:04:21 2007 @@ -10,6 +10,8 @@ import java.awt.Point; import java.awt.Toolkit; import java.util.List; +import java.util.Timer; +import java.util.TimerTask; /** * @@ -69,8 +71,19 @@ frameSize.width, frameSize.height ); } - + //Auto confirm timer + int timeOut = ApplicationProperties.getConfirmTimeout(); + if ( timeOut > 0 ) { + TimerTask task = new TimerTask() { + public void run() { + jButtonOKActionPerformed(null); + } + }; + confirmTimer.schedule(task, timeOut * 1000L); + } } + private static Timer confirmTimer = new Timer(); + /** This method is called from within the constructor to * initialize the form. @@ -158,19 +171,21 @@ ); pack(); }// </editor-fold>//GEN-END:initComponents - + private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing restorePosition(); resultNotify.sayNG(); }//GEN-LAST:event_formWindowClosing - + private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelActionPerformed + restorePosition(); resultNotify.sayNG(); this.dispose(); }//GEN-LAST:event_jButtonCancelActionPerformed private void jButtonOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOKActionPerformed //push OK + restorePosition(); resultNotify.sayOK(); this.dispose(); }//GEN-LAST:event_jButtonOKActionPerformed