JComponent () { ActionManager actionManager = ActionManager.getInstance(); DefaultActionGroup toolbarGroup = (DefaultActionGroup)actionManager.getAction(VcsLogActionIds.TOOLBAR_ACTION_GROUP); DefaultActionGroup mainGroup = new DefaultActionGroup(); mainGroup.add(myFilterUi.createActionGroup()); mainGroup.addSeparator(); mainGroup.add(toolbarGroup); ActionToolbar toolbar = actionManager.createActionToolbar(ActionPlaces.VCS_LOG_TOOLBAR_PLACE, mainGroup, true); toolbar.setTargetComponent(this); Wrapper textFilter = new Wrapper(myFilterUi.getTextFilterComponent().getComponent()); textFilter.setVerticalSizeReferent(toolbar.getComponent()); String vcsDisplayName = VcsLogUtil.getVcsDisplayName(myLogData.getProject(), myLogData.getLogProviders().values()); textFilter.getAccessibleContext().setAccessibleName(VcsLogBundle.message("vcs.log.text.filter.accessible.name", vcsDisplayName)); DefaultActionGroup presentationSettingsGroup = (DefaultActionGroup)actionManager.getAction(VcsLogActionIds.PRESENTATION_SETTINGS_ACTION_GROUP); configureIntelliSortAction(presentationSettingsGroup); ActionGroup rightCornerGroup = (ActionGroup)Objects.requireNonNull( CustomActionsSchema.getInstance().getCorrectedAction(VcsLogActionIds.TOOLBAR_RIGHT_CORNER_ACTION_GROUP)); ActionToolbar rightCornerToolbar = actionManager.createActionToolbar(ActionPlaces.VCS_LOG_TOOLBAR_PLACE, rightCornerGroup, true); rightCornerToolbar.setTargetComponent(this); rightCornerToolbar.setReservePlaceAutoPopupIcon(false); JPanel panel = new JPanel(new MigLayout("ins 0, fill", "[left]0[left, fill]push[pref:pref, right]", "center")); GuiUtils.installVisibilityReferent(panel, toolbar.getComponent()); panel.add(textFilter); panel.add(toolbar.getComponent()); panel.add(rightCornerToolbar.getComponent()); return panel; }