Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component renderer = DEFAULT_RENDERER .getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); ((JLabel) renderer).setOpaque(true); Color foreground, background; if (isSelected) { foreground = highForeground; background = highBackground; } else if (table.getValueAt(row, 3) instanceof InteractiveClient.CollectionName) { foreground = collectionForeground; background = collectionBackground; } else if (row % 2 == 0) { background = altBackground; foreground = Color.black; } else { foreground = Color.black; background = Color.white; } renderer.setForeground(foreground); renderer.setBackground(background); return renderer; }
Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component renderer = DEFAULT_RENDERER .getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); ((JLabel) renderer).setOpaque(true); Color foreground, background;  ResourceTableModel resources = (ResourceTableModel) table.getModel(); if (isSelected) { foreground = highForeground; background = highBackground; } else if (resources.getRow(row).isCollection()) { foreground = collectionForeground; background = collectionBackground; } else if (row % 2 == 0) { background = altBackground; foreground = Color.black; } else { foreground = Color.black; background = Color.white; } renderer.setForeground(foreground); renderer.setBackground(background); return renderer; }
		public Component getTableCellRendererComponent(JTable table,				Object value, boolean isSelected, boolean hasFocus, int row,				int column) {			Component renderer = DEFAULT_RENDERER					.getTableCellRendererComponent(table, value, isSelected,							hasFocus, row, column);			((JLabel) renderer).setOpaque(true);			Color foreground, background;			if (isSelected) {				foreground = highForeground;				background = highBackground;			} else if (table.getValueAt(row, 3) instanceof InteractiveClient.CollectionName) {				foreground = collectionForeground;				background = collectionBackground;			} else if (row % 2 == 0) {				background = altBackground;				foreground = Color.black;			} else {				foreground = Color.black;				background = Color.white;			}			renderer.setForeground(foreground);			renderer.setBackground(background);			return renderer;		}