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