public static ListingTextField createPackedTextField(FieldFactory factory, ProxyObj<?> proxy,
			FieldElement[] textElements, int startX, int width, int maxLines,
			ListingHighlightProvider provider) {

		ListingFieldHighlightFactoryAdapter hlFactory =
			new ListingFieldHighlightFactoryAdapter(provider);
		List<FieldElement> list = Arrays.asList(textElements);
		TextField field = new FlowLayoutTextField(list, startX, width, maxLines, hlFactory);
		ListingTextField listingField = new ListingTextField(factory, proxy, field, hlFactory);
		return listingField;
	}
Displays the list of text strings, packing as many as it can on a line before wrapping to
the next line.
@param factory the field factory that generated this field
@param proxy the object used to populate this field
@param textElements the array of elements for the field.
Each of these holds text, attributes and location information.
@param startX the starting X position of the field
@param width the width of the field
@param maxLines the maxLines to display.
@param provider the highlight provider.
@return the text field.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/ListingTextField.java