public static JComponent createContainer(boolean direction){
  JComponent container=new Spring();
  container.setLayout(new SBoxLayout(direction));
  return container;
}

public static JComponent createContainer ( boolean direction ) { JComponent container = new Spring ( ) ; container . setLayout ( new SBoxLayout ( direction ) ) ; return container ; }
a convenience method for creating a container using sboxlayout .
