centerPanel.clear(); for (Action action : newCenterVisibleActions) { addToPanel(centerPanel, action, presentationFactory); rightPanel.clear(); for (Action action : newRightVisibleActions) { addToPanel(rightPanel, action, presentationFactory); leftPanel.clear(); for (Action action : newLeftVisibleActions) { addToPanel(leftPanel, action, presentationFactory);