layout();
layout(false);
public void setOrientation(int orientation) {	checkWidget();	if (this.orientation == orientation) return;	if (orientation != SWT.HORIZONTAL && orientation != SWT.VERTICAL) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	this.orientation = orientation;		int sashStyle = (orientation == SWT.HORIZONTAL) ? SWT.VERTICAL : SWT.HORIZONTAL;	if ((getStyle() & SWT.BORDER) != 0) sashStyle |= SWT.BORDER;	for (int i = 0; i < sashes.length; i++) {		sashes[i].dispose();		sashes[i] = new Sash(this, sashStyle);		sashes[i].setBackground(background);		sashes[i].setForeground(foreground);		sashes[i].addListener(SWT.Selection, sashListener);	}	layout();}