void (final CommittablePanel errorPanel) { myCommittableErrorPanel = errorPanel; Disposer.register(this, errorPanel); final JComponent component = errorPanel.getComponent(); component.setBackground(getBackground()); myErrorPanel.setLayout(new BorderLayout()); myErrorPanel.add(component, BorderLayout.CENTER); }