JComponent () { final JPanel mainPanel = new JPanel(new BorderLayout(0, JBUIScale.scale(16))); mainPanel.setBorder(JBUI.Borders.emptyTop(8)); // Resulting indent will be 16 = 8 (default) + 8 (set here) mainPanel.add(myUseNestingRulesCheckBox, BorderLayout.NORTH); mainPanel.add(myRulesPanel, BorderLayout.CENTER); return mainPanel; }