public int setText(String text) {
			int adj = 0;
			for (int i = 0; i < linkedFields.size() - 1; i++) {
				LinkedField lf = linkedFields.get(i);
				FieldState fs = fieldStates.get(i);

				if (text.length() == 0) {
					fs.text = "";
					continue;
				}

				Matcher mat = lf.pat.matcher(text);
				if (mat.find(0)) {
					fs.text = text.substring(0, mat.start());
					text = text.substring(mat.end());
					if (i < whichFocus) {
						adj += lf.sep.length() - mat.group().length();
					}
				}
				else {
					fs.text = text;
					text = "";
				}
			}
			lastState.text = text;
			return adj;
		}
Set the composite text

@param text the new text
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/TextFieldLinker.java