Dimension size = new Dimension(0, 0);
Component[] components = container_.getComponents();
for (int i = 0; i < components.length; i++) {
Component c = components[ i];
Dimension d = c.minimumSize();
if (_axis == X_AXIS) {
size.width += d.width;
if (d.height > size.height) size.height = d.height;
} else {
size.height += d.height;