JComponent () { ActionManager actionManager = ActionManager.getInstance(); ActionToolbar actionToolbar = actionManager.createActionToolbar(TOOLBAR, myActionGroup, true); actionToolbar.setLayoutPolicy(ActionToolbar.WRAP_LAYOUT_POLICY); JComponent toolbar = actionToolbar.getComponent(); toolbar.setBorder(IdeBorderFactory.createBorder(SideBorder.BOTTOM)); toolbar.setVisible(false); return toolbar; }