Dimension (final int componentIndex) { Dimension size = myLayoutState.myMinimumSizes[componentIndex]; if (size == null) { size = Util.getMinimumSize(myLayoutState.getComponent(componentIndex), myLayoutState.getConstraints(componentIndex), true); myLayoutState.myMinimumSizes[componentIndex] = size; } return size; }