BoxLayout(JComponent p,
public BoxLayout(JComponent p,
    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);    }