JComponent () { final JPanel panel = new JPanel(new BorderLayout()); panel.add(ScrollPaneFactory.createScrollPane(myChooser.getComponent()), BorderLayout.CENTER); if (myDescription != null) { panel.add(new JLabel(myDescription), BorderLayout.NORTH); } return panel; }