private JScrollPane createDetailsPane() {
		textPane = new JTextPane();
		doc = textPane.getStyledDocument();
		textPane.setName(DIFF_DETAILS_TEXT_AREA);
		textPane.setEditable(false);
		textPane.setMargin(new Insets(5, 5, 5, 5));
		Gui.registerFont(textPane, Fonts.MONOSPACED);
		textPane.setOpaque(true);
		textPane.setCaretPosition(0);
		JScrollPane scrolledDetails = new JScrollPane(textPane);
		JViewport vp = scrolledDetails.getViewport();
		vp.add(textPane);
		return scrolledDetails;
	}
Create a panel for the Diff details and auto update checkbox.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/DiffDetailsProvider.java