@Override
		public Component getListCellRendererComponent(JList<? extends JCheckBox> list,
				JCheckBox value, int index, boolean isSelected, boolean cellHasFocus) {

			if (index == -1) {
				int selected = list.getSelectedIndex();
				if (selected == -1) {
					return null;
				}
				index = selected;
			}
			Color fg = isSelected ? list.getSelectionForeground() : list.getForeground();
			Color bg = isSelected ? list.getSelectionBackground() : list.getBackground();
			checkboxes[index].setForeground(fg);
			checkboxes[index].setBackground(bg);
			return checkboxes[index];
		}
Cell renderer to show the checkboxes for the changed data files.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DomainFilesPanel.java