JComponent () { ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.STRUCTURE_VIEW_TOOLBAR, createActionGroup(), true); toolbar.setTargetComponent(myTree); return toolbar.getComponent(); }