private void setSelectedAddresses(List<Address> addrs) {
		Set<Address> addrSet = new HashSet<>(addrs);
		for (EncodedStringsRow row : tableModel.getModelData()) {
			if (addrSet.contains(row.sdi().getAddress())) {
				int viewIndex = tableModel.getViewIndex(row);
				if (viewIndex >= 0) {
					table.getSelectionManager().addSelectionInterval(viewIndex, viewIndex);
				}
			}
		}
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java