void setIcon(Icon icon) {

			icon = DockingUtils.scaleIconAsNeeded(icon);
			if (icon != null) {
				titleLabel.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 0));
			}
			else {
				titleLabel.setBorder(BorderFactory.createEmptyBorder(0, 6, 0, 0));
			}
			titleLabel.setIcon(icon);

		}
Sets the title to be displayed.
@param s the title to be displayed.
Ghidra/Framework/Docking/src/main/java/docking/GenericHeader.java