void (int vGap) { JPanel controlsPanel = createControlsPanel(); add(controlsPanel); JComponent topComponent = createTopComponent(); if (topComponent != null) { add(topComponent); } JComponent bottomComponent = createBottomComponent(); if (bottomComponent != null) { add(bottomComponent); } mySettingsPanelSeparator = new JSeparator(); add(mySettingsPanelSeparator); if (vGap > 0) { add(Box.createVerticalGlue()); add(Box.createRigidArea(new JBDimension(0, vGap))); } }