|
From: <de...@us...> - 2017-01-11 16:15:11
|
Revision: 9514
http://sourceforge.net/p/fudaa/svn/9514
Author: deniger
Date: 2017-01-11 16:15:09 +0000 (Wed, 11 Jan 2017)
Log Message:
-----------
CRUE-728: le dialogue n'?\195?\169tait pas ouverte dans le bon mode.
Modified Paths:
--------------
trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/helper/DialogHelper.java
Modified: trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/helper/DialogHelper.java
===================================================================
--- trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/helper/DialogHelper.java 2017-01-11 16:13:29 UTC (rev 9513)
+++ trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/helper/DialogHelper.java 2017-01-11 16:15:09 UTC (rev 9514)
@@ -157,10 +157,7 @@
Component finalComp;
if (createLayout) {
- // création d'un layout pour le redimensionnement
- JPanel pn = new JPanel();
- pn.setLayout(new BorderLayout());
- pn.add(cpn, BorderLayout.CENTER);
+ JPanel pn = createContainerPanel(cpn);
finalComp = pn;
} else {
finalComp = cpn;
@@ -214,6 +211,19 @@
/**
*
+ * @param cpn
+ * @return un JPanel contenant cpn au centre
+ */
+ public static JPanel createContainerPanel(final Component cpn) {
+ // création d'un layout pour le redimensionnement
+ JPanel pn = new JPanel();
+ pn.setLayout(new BorderLayout());
+ pn.add(cpn, BorderLayout.CENTER);
+ return pn;
+ }
+
+ /**
+ *
* @param pn la panel a afficher
* @param dialogOption voir les options de CtuluDialog pour le dialog
* @param table la table contenue
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|