From: <bma...@us...> - 2008-12-22 14:21:02
|
Revision: 4311 http://fudaa.svn.sourceforge.net/fudaa/?rev=4311&view=rev Author: bmarchan Date: 2008-12-22 14:20:55 +0000 (Mon, 22 Dec 2008) Log Message: ----------- BugFix#125 : Traceback lors de l'ouverture d'une bd si la fenetre 2D est iconifi?\195?\169e Modified Paths: -------------- branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/com/memoire/bu/BuDesktop.java Modified: branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/com/memoire/bu/BuDesktop.java =================================================================== --- branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/com/memoire/bu/BuDesktop.java 2008-12-19 12:13:30 UTC (rev 4310) +++ branches/FudaaModeleur_TC1Bis/fudaa_devel/ctulu/src/com/memoire/bu/BuDesktop.java 2008-12-22 14:20:55 UTC (rev 4311) @@ -417,18 +417,27 @@ // Filles + /** + * Ajoute une fenetre interne. Lors de l'ajout, la fenetre est rendue visible, positionn\xE9e devant les autres, et devient active. + * @param _f La fenetre interne a ajouter. + */ public void addInternalFrame(JInternalFrame _f) { if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread. " + "Use Implementation.addInternalFrame() instead"); - // System.err.println(_f.getName()+":"+_f.getDesktopPane()); - + // B.M. : On prend garde que l'\xE9tat de la fenetre (qui peut \xEAtre une ancienne frame supprim\xE9e puis ajout\xE9e a nouveau) + // soit bien reinitialis\xE9. Sinon, risque de traceback. if (_f.getDesktopPane() == null) { if (_f.isSelected()) { try { _f.setSelected(false); } catch (PropertyVetoException ex) {} } + if (_f.isIcon()) { + try { + _f.setIcon(false); + } catch (PropertyVetoException ex) {} + } Point pf = _f.getLocation(); if ((pf.x == 0) && (pf.y == 0)) { @@ -469,6 +478,10 @@ adjustSize(); } + /** + * Indique au desktop qu'il y a eu un changement de position/taille de l'internal frame. Ceci lui permet de r\xE9ajuster sa taille. + * @param _f L'internal frame concern\xE9e par le changement de taille/position. + */ public void checkInternalFrame(JInternalFrame _f) { if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread."); @@ -494,6 +507,11 @@ adjustSize(); } + /** + * Active une fenetre interne. Lors de l'activation, la fenetre est rendue visible, positionn\xE9e devant les autres, et + * d\xE9siconifi\xE9e. + * @param _f La fenetre interne a activer. + */ public void activateInternalFrame(JInternalFrame _f) { if (!SwingUtilities.isEventDispatchThread()) throw new RuntimeException("Not in swing thread. " + "Use Implementation.activateInternalFrame() instead"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |