commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing ComponentTag.java
Date Tue, 07 Sep 2004 07:04:38 GMT
dion        2004/09/07 00:04:38

  Modified:    jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing
                        ComponentTag.java
  Log:
  Jelly-128. Layout constraints don't work with RootPaneContainer classes
  
  Revision  Changes    Path
  1.19      +6 -1      jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java
  
  Index: ComponentTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ComponentTag.java	2 Sep 2004 00:15:07 -0000	1.18
  +++ ComponentTag.java	7 Sep 2004 07:04:38 -0000	1.19
  @@ -215,7 +215,12 @@
           }
           else if ( parent instanceof RootPaneContainer ) {
               RootPaneContainer rpc = (RootPaneContainer) parent;
  -            rpc.getContentPane().add( component );
  +            if (constraints != null) {
  +                rpc.getContentPane().add( component, constraints );
  +            }
  +            else {
  +                rpc.getContentPane().add( component);
  +            }
           }
           else if ( parent instanceof JScrollPane ) {
               JScrollPane scrollPane = (JScrollPane) parent;
  
  
  

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


Mime
View raw message