for (Component c : this.getComponents()) {
if (c instanceof RenderableBlock) {
rb = (RenderableBlock) c;
rb.setBounds(tx, ty, rb.getBlockWidth(), rb.getBlockHeight());
ty = ty + BORDER_WIDTH + rb.getBlockHeight();
rb.repaint();
if (maxWidth < rb.getBlockWidth() + BORDER_WIDTH) {
maxWidth = rb.getBlockWidth() + BORDER_WIDTH;
}
}
}