ActionToolbar (boolean horizontal) { DefaultActionGroup actionGroup = new DefaultActionGroup(); actionGroup.add(EMPTY_ACTION); ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.TOOLBAR, actionGroup, horizontal); toolbar.getComponent().setBorder(JBUI.Borders.empty()); return toolbar; }