private static String getTableCellValue(JTable table, TableModel model, int row, int column) {
		TableCellRenderer renderer = table.getCellRenderer(row, column);
		TableColumnModel columnModel = table.getColumnModel();
		TableColumn tableColumn = columnModel.getColumn(column);
		int modelIndex = tableColumn.getModelIndex();
		Object value = model.getValueAt(row, modelIndex);
		Component component =
			renderer.getTableCellRendererComponent(table, value, false, false, row, column);

		if (isCheckBox(component)) {
			return getCheckBoxValue(component);
		}

		if (component instanceof JLabel) {
			JLabel label = (JLabel) component;
			return getTextForLabel(label);
		}

		String text = lookForTextInsideOfComponent(component);
		if (text != null) {
			return text;
		}

		return value == null ? "" : value.toString();
	}
Attempts to get the text value for the cell so that the data will match what the user sees.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/GTableToCSV.java