JComponent () { final JPanel panel = new JPanel(new BorderLayout()); panel.setPreferredSize(new Dimension(400, 300)); final JBLabel label = new JBLabel(PyBundle.message("choose.packages.to.install")); label.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0)); panel.add(label, BorderLayout.NORTH); panel.add(myRequirementsChooser, BorderLayout.CENTER); return panel; }