public void layoutContainer(Container parent){
  prepare(SPECIFIC_SIZE);
  Insets insets=parent.getInsets();
  int width=parent.getWidth() - insets.left - insets.right;
  int height=parent.getHeight() - insets.top - insets.bottom;
  boolean ltr=isLeftToRight();
  if (getAutoCreateGaps() || getAutoCreateContainerGaps() || hasPreferredPaddingSprings) {
    calculateAutopadding(horizontalGroup,HORIZONTAL,SPECIFIC_SIZE,0,width);
    calculateAutopadding(verticalGroup,VERTICAL,SPECIFIC_SIZE,0,height);
  }
  horizontalGroup.setSize(HORIZONTAL,0,width);
  verticalGroup.setSize(VERTICAL,0,height);
  for (  ComponentInfo info : componentInfos.values()) {
    info.setBounds(insets,width,ltr);
  }
}

public void layoutContainer ( Container parent ) { prepare ( SPECIFIC_SIZE ) ; Insets insets = parent . getInsets ( ) ; int width = parent . getWidth ( ) - insets . left - insets . right ; int height = parent . getHeight ( ) - insets . top - insets . bottom ; boolean ltr = isLeftToRight ( ) ; if ( getAutoCreateGaps ( ) || getAutoCreateContainerGaps ( ) || hasPreferredPaddingSprings ) { calculateAutopadding ( horizontalGroup , HORIZONTAL , SPECIFIC_SIZE , 0 , width ) ; calculateAutopadding ( verticalGroup , VERTICAL , SPECIFIC_SIZE , 0 , height ) ; } horizontalGroup . setSize ( HORIZONTAL , 0 , width ) ; verticalGroup . setSize ( VERTICAL , 0 , height ) ; for ( ComponentInfo info : componentInfos . values ( ) ) { info . setBounds ( insets , width , ltr ) ; } }
lays out the specified container .
