int (ComponentDragObject dragObject, int defaultSize) { Dimension initialSize = dragObject.getInitialSize(getContainer()); if (initialSize.width > 0 && initialSize.width < defaultSize) { return initialSize.width; } return defaultSize; }