private static CompositeFieldElement createLineFromElements(List<FieldElement> elements,
			int start, int length) {
		return new CompositeFieldElement(elements.subList(start, start + length));
	}
This constructor will create a text field that will render one line of text. If
<code>metrics.stringWidth(text) &gt; width</code>, then the text will be wrapped.
If <code>text</code> contains the highlight string, then it will be highlighted using the
highlight color.

@param elements the AttributedStrings to display
@param startX the x position to draw the string
@param width the max width allocated to this field
@param maxLines the max number of lines to display
@param hlFactory the highlight factory
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/field/FlowLayoutTextField.java