Dimension () { return new Dimension(myPrimaryColumn.preferredSize.width + mySecondaryColumn.preferredSize.width, Math.max(myPrimaryColumn.preferredSize.height, mySecondaryColumn.preferredSize.height)); }