public void addLayoutComponent ( Component comp , Object constraint ) { if ( debug ) System . out . println ( name + " addLayoutComponent= " + comp . getClass ( ) . getName ( ) + " " + comp . hashCode ( ) + " " + constraint ) ; if ( ! ( constraint instanceof Constraint ) ) throw new IllegalArgumentException ( "MySpringLayout must be Constraint" ) ; constraintMap . put ( comp , constraint ) ; globalBounds = null ; }
Adds the specified component to the layout using the specified constraint object .