private void updatePreview() {
		int rowCount = table.getSelectedRowCount();
		if (rowCount == 1) {
			int charOffset = offsetField.getIntValue();
			FoundString foundString = stringModel.getRowObject(table.getSelectedRow());
			MemBuffer membuf =
				new DumbMemBufferImpl(currentProgram.getMemory(), foundString.getAddress());
			StringDataInstance stringInstance =
				StringDataInstance.getStringDataInstance(foundString.getDataType(), membuf,
					SettingsImpl.NO_SETTINGS, foundString.getLength());
			if (charOffset != 0) {
				stringInstance = stringInstance.getCharOffcut(charOffset);
			}

			preview.setText(stringInstance.getStringRepresentation());
		}
		else {
			preview.setText("");
		}
	}
Sets the given row as a selection in the table.  Note, this method assumes that the given
row was obtained by getting the selected row from the table and not somehow
obtained from the model.

@param row the row in the table to select
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/StringTableProvider.java