JComponent () { DefaultActionGroup group = createToolbarActions(); group.add(Separator.getInstance()); group.add(ActionManager.getInstance().getAction(ChangesTree.GROUP_BY_ACTION_GROUP)); ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("VcsSelectFilesDialog", group, true); TreeActionsToolbarPanel toolbarPanel = new TreeActionsToolbarPanel(toolbar, getFileList()); JPanel panel = new JPanel(new BorderLayout()); panel.add(toolbarPanel, BorderLayout.NORTH); panel.add(ScrollPaneFactory.createScrollPane(getFileList()), BorderLayout.CENTER); return panel; }