@Override
	protected void updateEditorComponent() {
		if (hasEditorComponents()) {
			textField.setText(getConstraint().getPatternString());
			textField.setCaretPosition(0);
		}
	}
Constructor.

@param constraint String-type constraint for which this component is an editor.
@param errorMessage the message to display if the textField is blank.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/StringConstraintEditor.java