JPanel (JComponent initializerPlacePanel, JPanel checkboxPanel) { JPanel panel = new JPanel(new GridBagLayout()); final GridBagConstraints constraints = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, JBInsets.emptyInsets(), 0, 0); panel.add(initializerPlacePanel, constraints); panel.add(checkboxPanel, constraints); return panel; }