if (way == X_AXIS) { width = 1; }
switch (way) { case X_AXIS: width = 1; break; case Y_AXIS: height = 1; break; case LINE_AXIS: if (orientation.isHorizontal()) height = 1;
    public BoxLayout(JComponent p,	      int way)    {	int width = 0;	int height = 0;	this.way = way;	if (way == X_AXIS)	    {		width = 1;	    }	else	    {		height = 1;	    }		gridbag = new GridLayout(width, height);    }