@Override
	public String getToolTipText(MouseEvent event) {
		Component source = event.getComponent();
		if (SwingUtilities.isDescendingFrom(source, genericHeader)) {
			if (!(source instanceof JComponent)) {
				return null;
			}
			JComponent jComponent = (JComponent) source;
			return jComponent.getToolTipText();
		}
// Currently, we do not clip, so there is no need to show the text area's contents
//		else if (source == userTextArea) {
//			return HTMLUtilities.convertToHTML(userTextArea.getText());
//		}
		return null;
	}
A bit of a hack that triggers the text area to update its preferred height now before we
render so that it doesn't change later.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/vertex/GroupedFunctionGraphComponentPanel.java