@Override
	protected Component buildInlineEditorComponent() {

		JPanel panel = new JPanel(new BorderLayout());
		textField = new JTextField();
		textField.getDocument().addUndoableEditListener(e -> valueChanged());

		DockingUtils.installUndoRedo(textField);

		panel.add(textField, BorderLayout.CENTER);

		infoLabel = new GDHtmlLabel("abc");  // temporary text in the label so that it sizes properly
		infoLabel.setForeground(Messages.ERROR);
		infoLabel.setHorizontalAlignment(SwingConstants.CENTER);
		panel.add(infoLabel, BorderLayout.SOUTH);
		return panel;
	}
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