public Component getTableCellRendererComponent(JTable table, Object cell,
                        boolean isSelected, boolean hasFocus, int row, int column) {
    	super.getTableCellRendererComponent(table, cell, isSelected, hasFocus, row, column);
    	
    	setToolTipText(ToolTipHelper.makeToolTip((Card)table.getValueAt(row, DeckTable.getNameColumnNumber())));
            if (!isSelected) {
            	Color color = (Color)((DeckTableModel)table.getModel()).getRowColor(row);
            	setBackground(color);
            	if (color.equals(ColorCreator.BLUE) || color.equals(ColorCreator.RED)) {
            		setForeground(Color.WHITE);
            	}
            	else {
            		setForeground(Color.BLACK);
            	}
            }
            if(cell instanceof Card) {
            	setText(((Card)cell).getName());
            }
            else if(cell instanceof Integer) {
            	if ((Integer) cell == -1) {
            		setText("--");
            	}
            	else {
            		setText(cell.toString());
            	}
            }
            else {
            	setText(cell.toString());
            }

        return this;
    }