Revision: 1735 http://svn.sourceforge.net/spring-rich-c/?rev=1735&view=rev Author: peterdb Date: 2007-03-22 01:40:13 -0700 (Thu, 22 Mar 2007)
Log Message: ----------- fix for RCP-464/ Closing an mdi frame forces a frame to re-open Modified Paths: -------------- trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/application/mdi/DesktopApplicationPage.java Modified: trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/application/mdi/DesktopApplicationPage.java =================================================================== --- trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/application/mdi/DesktopApplicationPage.java 2007-03-09 08:06:26 UTC (rev 1734) +++ trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/application/mdi/DesktopApplicationPage.java 2007-03-22 08:40:13 UTC (rev 1735) @@ -17,6 +17,7 @@ import java.beans.PropertyVetoException; import java.util.HashMap; +import java.util.Iterator; import java.util.Map; import javax.swing.JComponent; @@ -157,4 +158,18 @@ frame.setTitle(pageComponent.getDisplayName()); frame.setToolTipText(pageComponent.getCaption()); } + + /** + * Overridden so it will leave iconified frames iconified. + */ + protected void setActiveComponent() { + for(Iterator iter = getPageComponents().iterator(); iter.hasNext();) { + PageComponent component = (PageComponent) iter.next(); + + if(!getInternalFrame(component).isIcon()) { + setActiveComponent(component); + break; + } + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs