public void setAdditionalDisplay(JComponent additionalComponent) {
        if (currentAdditionalDisplay == null && additionalComponent != null) {
            if (flowLayout)
                flowLayoutGatesPanel.setVisible(false);
            else
                nullLayoutGatesPanel.setVisible(false);
        }
        else if (currentAdditionalDisplay != null && additionalComponent == null) {
            if (flowLayout)
                flowLayoutGatesPanel.setVisible(true);
            else
                nullLayoutGatesPanel.setVisible(true);
        }

        super.setAdditionalDisplay(additionalComponent);
    }