private String getDisplayString(PropertyChangeEvent evt) {
		StringBuilder builder = new StringBuilder();
		builder.append(evt.getPropertyName());
		builder.append(": OLD = ");
		builder.append(getName((Component) evt.getOldValue()));
		builder.append(", NEW = ");
		builder.append(getName((Component) evt.getNewValue()));
		return builder.toString();
	}
Diagnostic dialog for display information about the components in a window and related focus
information.
Ghidra/Framework/Docking/src/main/java/ghidra/docking/util/ComponentInfoDialog.java