JComponent () { final DefaultActionGroup group = new DefaultActionGroup(); final TreeExpander expander = new DefaultTreeExpander(myTree); final CommonActionsManager actionsManager = CommonActionsManager.getInstance(); group.add(actionsManager.createExpandAllAction(expander, myTree)); group.add(actionsManager.createCollapseAllAction(expander, myTree)); final JComponent component = ActionManager.getInstance().createActionToolbar(ActionPlaces.PROJECT_VIEW_TOOLBAR, group, true).getComponent(); component.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.darkGray), component.getBorder())); return component; }