private void updateFocusInfo(Component newFocusComponent) {
		if (newFocusComponent == null) {
			return;
		}
		if (newFocusComponent == currentComponent) {
			return;
		}
		oldComponentTextField.setText(newComponentTextField.getText());
		currentComponent = newFocusComponent;
		newComponentTextField.setText(getName(currentComponent));

		oldProviderTextField.setText(newProviderTextField.getText());
		currentProvider = DockingWindowManager.getActiveInstance().getProvider(newFocusComponent);
		newProviderTextField.setText(currentProvider == null ? "" : currentProvider.getName());

		oldWindowTextField.setText(newWindowTextField.getText());
		currentWindow = SwingUtilities.windowForComponent(newFocusComponent);
		newWindowTextField.setText(WindowUtilities.getTitle(currentWindow));

	}
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