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