void (ActionGroup group) { removeOldActionPanel(); if (group == null) return; myActionPanel = new ActionPanel(myTabs, myInfo, e -> processMouseEvent(SwingUtilities.convertMouseEvent(e.getComponent(), e, this)), value -> setHovered(value)); toggleShowActions(false); add(myActionPanel, isTabActionsOnTheRight() ? BorderLayout.EAST : BorderLayout.WEST); myTabs.revalidateAndRepaint(false); }