0

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;
    }
}
Hovercraft Full Of Eels
  • 283,665
  • 25
  • 256
  • 373

0 Answers0