setPreferredSize(new SDimension("100%", null));
    public void setOrientation(int orientation) {        switch (orientation) {            case SConstants.VERTICAL:            case SConstants.HORIZONTAL:                this.orientation = orientation;                break;            default:                throw new IllegalArgumentException("orientation must be one of: VERTICAL, HORIZONTAL");        }    }