import java.awt.Point;
import java.awt.Toolkit;
import java.util.List;
+import java.util.Timer;
+import java.util.TimerTask;
/**
*
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.
);
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