@Override
	public void componentHidden() {
		for (ActionListener listener : listenerList) {
			listener.actionPerformed(new ActionEvent(this, 0, DIFF_DETAILS_HIDDEN_ACTION));
		}
		isDisplayed = false;
		p1DetailsLocation = null;
	}
Create a panel for the Diff details and auto update checkbox.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/DiffDetailsProvider.java