From: <de...@us...> - 2008-09-21 23:13:23
|
Revision: 3964 http://fudaa.svn.sourceforge.net/fudaa/?rev=3964&view=rev Author: deniger Date: 2008-09-21 23:13:17 +0000 (Sun, 21 Sep 2008) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ctulu/src/org/fudaa/ctulu/gui/CtuluDialog.java Modified: branches/Prepro-0.92-SNAPSHOT/ctulu/src/org/fudaa/ctulu/gui/CtuluDialog.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ctulu/src/org/fudaa/ctulu/gui/CtuluDialog.java 2008-09-21 18:52:19 UTC (rev 3963) +++ branches/Prepro-0.92-SNAPSHOT/ctulu/src/org/fudaa/ctulu/gui/CtuluDialog.java 2008-09-21 23:13:17 UTC (rev 3964) @@ -136,9 +136,7 @@ * @return le choix de l'utilisateur JOptionPane.DEFAULT_OPTION,JOptionPane.OK_OPTION, JOptionPane.CANCEL_OPTION */ public int afficheDialogModal(final Runnable _r) { - if (_r == null) { - return afficheDialogModal(); - } + if (_r == null) { return afficheDialogModal(); } setModal(true); afficheDialog(true, _r); return response_; @@ -157,7 +155,7 @@ public int afficheDialog(final Point _loc, final Dimension _d, final boolean _modal) { setModal(_modal); setLocation(_loc); - setSize(_d); + if (_d != null) setSize(_d); doLayout(); afficheDialog(false); @@ -225,8 +223,7 @@ } else { if (initParent_ != null) { setLocationRelativeTo(initParent_); - } else - setLocationRelativeTo(getParent()); + } else setLocationRelativeTo(getParent()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |