public void setTopComponent(JComponent component) {
		if (northComponent != null) {
			remove(northComponent);
		}
		northComponent = component;
		if (northComponent != null) {
			add(northComponent, BorderLayout.NORTH);
		}
		validate();
	}
Sets the component displayed in the top of this panel.

@param component the component.
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/panel/CodeComparisonPanel.java