OSDN Git Service

BUGFIX: Windows posision get before dispose windows when window close button pushed.
authorTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 16 Aug 2007 16:51:14 +0000 (16:51 +0000)
committerTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 16 Aug 2007 16:51:14 +0000 (16:51 +0000)
src/org/jent/checksmtp/ToListUI.form
src/org/jent/checksmtp/ToListUI.java

index 4a46a9e..c974b8b 100644 (file)
@@ -11,7 +11,7 @@
     <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
   </SyntheticProperties>
   <Events>
-    <EventHandler event="windowClosed" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowClosed"/>
+    <EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowClosing"/>
   </Events>
   <AuxValues>
     <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
index f65e55a..c17496c 100644 (file)
@@ -89,8 +89,8 @@ public class ToListUI extends javax.swing.JFrame {
     java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/jent/checksmtp/Bundle"); // NOI18N
     setTitle(bundle.getString("ToListUI.title")); // NOI18N
     addWindowListener(new java.awt.event.WindowAdapter() {
-      public void windowClosed(java.awt.event.WindowEvent evt) {
-        formWindowClosed(evt);
+      public void windowClosing(java.awt.event.WindowEvent evt) {
+        formWindowClosing(evt);
       }
     });
 
@@ -158,12 +158,12 @@ public class ToListUI extends javax.swing.JFrame {
     );
     pack();
   }// </editor-fold>//GEN-END:initComponents
-  
-  private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
+
+  private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
     restorePosition();
     resultNotify.sayNG();
-  }//GEN-LAST:event_formWindowClosed
-  
+  }//GEN-LAST:event_formWindowClosing
+    
   private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelActionPerformed
     resultNotify.sayNG();
     this.dispose();