Update of /cvsroot/ejtools/libraries/adwt/src/main/org/ejtools/adwt/service
In directory sc8-pr-cvs1:/tmp/cvs-serv22912/libraries/adwt/src/main/org/ejtools/adwt/service
Modified Files:
MDIDesktopPane.java
Log Message:
Remove a NPE cause in getBorder
Index: MDIDesktopPane.java
===================================================================
RCS file: /cvsroot/ejtools/libraries/adwt/src/main/org/ejtools/adwt/service/MDIDesktopPane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MDIDesktopPane.java 27 Nov 2003 00:51:45 -0000 1.5
--- MDIDesktopPane.java 26 Dec 2003 00:17:01 -0000 1.6
***************
*** 1,570 ****
! /*
! * EJTools, the Enterprise Java Tools
! *
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
! */
! package org.ejtools.adwt.service;
!
! import java.awt.Component;
! import java.awt.Dimension;
[...1113 lines suppressed...]
!
! int frameHeight = bounds.height / numRows;
! for (curRow = 0; curRow < numRows; curRow++)
! {
! while (frames[i].isIcon())
! {
! // find the next visible frame
! i++;
! }
!
! frames[i].setBounds(curCol * frameWidth, curRow * frameHeight, frameWidth, frameHeight);
! i++;
! }
! }
! }
! }
! }
!
! }
!
|