How can I see if the value is an integer == 150 for example. And if it is, I want to set the foregroundcolor for that cell. This is my code:
class JComponentTableCellRenderer implements TableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
return (JComponent) value;
}
}