JPanel () { JPanel fontSettingsPanel = createFontSettingsPanel(); JPanel secondaryPanel = new JPanel(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridx = 0; c.gridy = 0; createSecondaryFontComboAndLabel(secondaryPanel, c); JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints c2 = new GridBagConstraints(); c2.gridx = 0; c2.gridy = 0; c2.insets = JBUI.insets(0, BASE_INSET * 2); c2.anchor = GridBagConstraints.NORTH; panel.add(fontSettingsPanel, c2); c2.gridx ++; panel.add(secondaryPanel, c2); return panel; }