r3139 - trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook
Author: vsalaun Date: 2011-05-20 16:30:16 +0200 (Fri, 20 May 2011) New Revision: 3139 Url: http://chorem.org/repositories/revision/lima/3139 Log: #395 correction du bug dans les JDialog lors de la fermeture (2/2) Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2011-05-20 14:29:19 UTC (rev 3138) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2011-05-20 14:30:16 UTC (rev 3139) @@ -26,6 +26,8 @@ package org.chorem.lima.ui.entrybook; import static org.nuiton.i18n.I18n._; + +import javax.swing.JDialog; import javax.swing.JOptionPane; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -77,6 +79,7 @@ // jaxx constructor don't call super() ? entryBookForm.setLocationRelativeTo(view); entryBookForm.setVisible(true); + entryBookForm.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); // null == cancel action newEntryBook = entryBookForm.getEntryBook(); @@ -110,6 +113,7 @@ // jaxx constructor don't call super() ? entryBookForm.setLocationRelativeTo(view); entryBookForm.setVisible(true); + entryBookForm.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); // null == cancel action selectedEntryBook = entryBookForm.getEntryBook(); @@ -160,6 +164,7 @@ new EntryBookImportForm(); form.setLocationRelativeTo(view); form.setVisible(true); + form.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); Object value = form.getRadioButtons().getSelectedValue(); // if action confirmed
participants (1)
-
vsalaun@users.chorem.org