public void layoutContainer(final Container parent){
  checkLayout(getModel());
  final Insets insets=parent.getInsets();
  final Dimension size=parent.getSize();
  final int width=size.width - (insets.left + insets.right);
  final int height=size.height - (insets.top + insets.bottom);
  final Rectangle bounds=new Rectangle(insets.left,insets.top,width,height);
  layout1(getModel(),bounds);
  layout2(getModel(),bounds);
}

public void layoutContainer ( final Container parent ) { checkLayout ( getModel ( ) ) ; final Insets insets = parent . getInsets ( ) ; final Dimension size = parent . getSize ( ) ; final int width = size . width - ( insets . left + insets . right ) ; final int height = size . height - ( insets . top + insets . bottom ) ; final Rectangle bounds = new Rectangle ( insets . left , insets . top , width , height ) ; layout1 ( getModel ( ) , bounds ) ; layout2 ( getModel ( ) , bounds ) ; }
compute the bounds of all of the split / divider / leaf nodes in the layout model , and then set the bounds of each child component with a matching leaf node .
