JComponent () { final Splitter splitter = new Splitter(true); final JPanel eqPanel = new JPanel(new BorderLayout()); eqPanel.add(new TitledSeparator(JavaBundle.message("generate.equals.template.title")), BorderLayout.NORTH); final JComponent eqPane = equalsConfigurable.createComponent(); eqPane.setPreferredSize(JBUI.size(300, 200)); eqPanel.add(eqPane, BorderLayout.CENTER); splitter.setFirstComponent(eqPanel); final JPanel hcPanel = new JPanel(new BorderLayout()); hcPanel.add(new TitledSeparator(JavaBundle.message("generate.hashcode.template.title")), BorderLayout.NORTH); final JComponent hcPane = hashCodeConfigurable.createComponent(); hcPane.setPreferredSize(JBUI.size(300, 200)); hcPanel.add(hcPane, BorderLayout.CENTER); splitter.setSecondComponent(hcPanel); return splitter; }