JComponent (boolean horizontal) { ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("CommitMessage", getToolbarActions(), horizontal); toolbar.setReservePlaceAutoPopupIcon(false); toolbar.getComponent().setBorder(createEmptyBorder()); toolbar.setTargetComponent(this); return toolbar.getComponent(); }