break;
}
tc.setCellRenderer(new DefaultTableCellRenderer(){
//protected Color defaultColor;
public Component getTableCellRendererComponent(JTable table, Object value, boolean selected, boolean focused, int row, int column){
ProjectData project=(ProjectData)projects.get(row);
setEnabled(table == null || table.isEnabled());
//if (defaultColor==null) defaultColor=getForeground();
setForeground((canBeUsed(project))?Color.BLACK:Color.GRAY);
super.getTableCellRendererComponent(table, value, selected, focused, row, column);
return this;