View Javadoc

1   package org.glassbox.gui;
2   
3   import org.glassbox.SwingFactory;
4   
5   import javax.swing.BoxLayout;
6   
7   /***
8      A layer which lays out its components using a BoxLayout.
9    */
10  public class BoxLayoutLayer extends LayoutLayer {
11      public BoxLayoutLayer(int axis, String themeprefix) {
12  	this(axis, themeprefix, false);
13      }
14  
15      public BoxLayoutLayer(int axis, String themeprefix, boolean resize) {
16  	super(themeprefix, resize);
17  	setLayout(new BoxLayout(getView(), axis));
18      }
19  }