JComponent () { ToolbarDecorator decorator = ToolbarDecorator.createDecorator(myTree). addExtraAction(new SelectAllButton()). addExtraAction(new UnselectAllButton()). setToolbarPosition(ActionToolbarPosition.BOTTOM); contentPanel.add(decorator.createPanel()); return mainPanel; }