private static String getCheckBoxValue(Component component) {

		if (component instanceof JCheckBox) {
			JCheckBox cb = (JCheckBox) component;
			return Boolean.toString(cb.isSelected());
		}

		if (component instanceof GBooleanCellRenderer) {
			GBooleanCellRenderer renderer = (GBooleanCellRenderer) component;
			return Boolean.toString(renderer.isSelected());
		}

		return "";
	}
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