You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by po...@apache.org on 2005/01/26 23:43:57 UTC

cvs commit: jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing TrTag.java

polx        2005/01/26 14:43:57

  Modified:    jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing
                        TrTag.java
  Log:
  Cells are of size 1 now unless indicated.
  paul
  
  Revision  Changes    Path
  1.10      +3 -1      jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/TrTag.java
  
  Index: TrTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/TrTag.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TrTag.java	9 Sep 2004 12:16:57 -0000	1.9
  +++ TrTag.java	26 Jan 2005 22:43:57 -0000	1.10
  @@ -69,6 +69,7 @@
           invokeBody(output);
   
           // now iterate through the rows and add each one to the layout...
  +        int colIndex = 0;
           for (Iterator iter = cells.iterator(); iter.hasNext(); ) {
               Cell cell = (Cell) iter.next();
               GridBagConstraints c = cell.getConstraints();
  @@ -76,7 +77,8 @@
               // are we the last cell in the row
               if ( iter.hasNext() ) {
                   // not last in row
  -                c.gridwidth = GridBagConstraints.RELATIVE;
  +                c.gridwidth = 1;
  +                c.gridx = colIndex++;
               }
               else {
                   // end of row
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org