void (Component component) { component.setSize(myParentExtent, myDefaultExtent); Dimension preferredSize = mySizeProperty.getSize(component); int height = getHeight(preferredSize); int width = getWidth(preferredSize); component.setBounds(myPosition.x, myPosition.y, width, height); myOrientation.advance(myPosition, width, height); }