BlockBox block = (BlockBox)box;
Box block = (Box)box;
    public void paint( Context c, Box box ) {        //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block);        BlockBox block = (BlockBox)box;        // copy the bounds to we don't mess it up        Rectangle oldBounds = new Rectangle( c.getExtents() );        if ( block.relative ) {            paintRelative( c, block );        } else if ( block.fixed ) {            paintFixed( c, block );        } else {            paintNormal( c, block );        }        //u.p("here it's : " + c.getListCounter());        if ( BoxLayout.isListItem( c, box ) ) {            paintListItem( c, box );        }        // move the origin down to account for the contents plus the margin, borders, and padding        oldBounds.y = oldBounds.y + block.height;        c.setExtents( oldBounds );        if ( c.debugDrawBoxes() ) {            GraphicsUtil.drawBox( c.getGraphics(), block, Color.red );        }    }