ActionToolbar () { DefaultActionGroup group = new DefaultActionGroup(); group.add(new ShowSchemesActionsListAction(myActions)); ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("SchemesPanelToolbar", group, true); toolbar.setReservePlaceAutoPopupIcon(false); toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY); JComponent toolbarComponent = toolbar.getComponent(); Dimension maxSize = toolbarComponent.getMaximumSize(); toolbarComponent.setMaximumSize(JBUI.size(22, maxSize.height)); toolbarComponent.setBorder(JBUI.Borders.empty(3)); return toolbar; }