@SuppressWarnings("unchecked")
	private StringRowObject getSelectedObject() {

		AtomicReference<StringRowObject> ref = new AtomicReference<>();
		runSwing(() -> {
			int row = table.getSelectedRow();
			TableModel tm = table.getModel();
			RowObjectTableModel<StringRowObject> rowModel =
				(RowObjectTableModel<StringRowObject>) tm;
			StringRowObject rowObject = rowModel.getRowObject(row);
			ref.set(rowObject);
		});
		return ref.get();
	}
Make sure that either the two given rows are an exact match, or that the row objects that
represent each row are equal()
Ghidra/Features/Base/src/test.slow/java/docking/widgets/table/SelectionManagerTest.java