/[classpath]/classpath/java/awt/GridBagLayout.java
ViewVC logotype

Diff of /classpath/java/awt/GridBagLayout.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by jfrijters, Thu Jul 24 13:56:12 2003 UTC revision 1.10 by mkoch, Wed Nov 26 22:10:39 2003 UTC
# Line 229  public class GridBagLayout Line 229  public class GridBagLayout
229       */       */
230      public int[][] getLayoutDimensions ()      public int[][] getLayoutDimensions ()
231      {      {
232            int[][] result = new int [2][];
233          if (layoutInfo == null)          if (layoutInfo == null)
234              return new int [2][];            {
235                result[0] = new int[0];
236                result[1] = new int[0];
237    
238                return result;
239              }
240    
         int[][] result = new int [2][];  
241          result [0] = new int [layoutInfo.cols];          result [0] = new int [layoutInfo.cols];
242          System.arraycopy (layoutInfo.colWidths, 0, result [0], 0, layoutInfo.cols);          System.arraycopy (layoutInfo.colWidths, 0, result [0], 0, layoutInfo.cols);
243          result [1] = new int [layoutInfo.rows];          result [1] = new int [layoutInfo.rows];
# Line 242  public class GridBagLayout Line 247  public class GridBagLayout
247    
248      public double[][] getLayoutWeights ()      public double[][] getLayoutWeights ()
249      {      {
         if (layoutInfo == null)  
             return new double [2][];  
         
250          double[][] result = new double [2][];          double[][] result = new double [2][];
251            if (layoutInfo == null)
252              {
253                result[0] = new double[0];
254                result[1] = new double[0];
255    
256                return result;
257              }
258    
259          result [0] = new double [layoutInfo.cols];          result [0] = new double [layoutInfo.cols];
260          System.arraycopy (layoutInfo.colWeights, 0, result [0], 0, layoutInfo.cols);          System.arraycopy (layoutInfo.colWeights, 0, result [0], 0, layoutInfo.cols);
261          result [1] = new double [layoutInfo.rows];          result [1] = new double [layoutInfo.rows];

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26