JComponent () { JPanel panel = new JPanel(new BorderLayout(5,5)); JLabel label = new JLabel(SvnBundle.message("label.select.files.and.directories.to.mark.resolved")); panel.add(label, BorderLayout.NORTH); myFilesList = new FilesList(myPaths); int height = myFilesList.getFontMetrics(myFilesList.getFont()).getHeight(); myFilesList.setPreferredSize(new Dimension(myFilesList.getPreferredSize().width, height*7)); panel.add(ScrollPaneFactory.createScrollPane(myFilesList), BorderLayout.CENTER); JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); mySelectAllButton = new JButton(SvnBundle.message("button.text.select.all")); myDeselectAllButton = new JButton(SvnBundle.message("button.text.deselect.all")); buttonsPanel.add(mySelectAllButton); buttonsPanel.add(myDeselectAllButton); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; }