childWidth = (int) childRect.width;
childWidth = childRect.width;
    private int getTotalWidth(Rectangle parent, Vector children) {        int childWidth = 0;        Enumeration e = children.elements();        while (e.hasMoreElements()) {            Rectangle childRect = (Rectangle) e.nextElement();            if (childWidth == 0) {                childWidth = (int) childRect.width;            } else {                childWidth += childRect.width + HorizontalSep;            }        }        return Math.max(parent.width, childWidth);    }