@Override
	public void addNotify() {

		super.addNotify();
		measure();
	}
This method is invoked after Canvas is first created
but before it can be actually displayed. After we have
invoked our superclass's addNotify() method, we have font
metrics and can successfully call measure() to figure out
how big the label is.
Ghidra/Framework/Docking/src/main/java/docking/widgets/MultiLineLabel.java