title: Netbeans problem with CustomTableCellRenderer
body: <p>I am trying to add a different data types (to make JTable sort integer columns in a proper way) to my JTable and at the same time to render the table to see odd rows darker than even rows.</p>
  
  <p>I have the following code of my TableCellRenderer:</p>
  
  <pre><code>public class MyCustomTableCellRenderer extends DefaultTableCellRenderer 
  {
      @Override
      public Component getTableCellRendererComponent(JTable table, Object value, boolean lected, boolean hasFocus, int row, int column) 
      {
          Component cell = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
  
          if (isSelected)
              cell.setBackground( new Color(180,180 ,255) );
          else
              if( row%2 == 0)
                  cell.setBackground( new Color(220,220 ,255) );
              else
                  cell.setBackground( Color.white );
  
          return cell;
      }
  }
  </code></pre>
  
  <p>And the DataModel code is like this:</p>
  
  <pre><code>DefaultTableModel MydataModel = new DefaultTableModel()
  {
      @Override
      public boolean isCellEditable(int row, int col)
      {
          return false;
      }
  
      @Override
      public Class getColumnClass(int c)  
      {
          String colname = getColumnName(c);
  
          if (colname.contains("INT")) return Integer.class;
          return String.class;
      }
  };
  </code></pre>
  
  <p>I am adding new integer values using new Integer( some_integer ) to the table.</p>
  
  <p>When running the code, the table is rendered in a proper way (odd and even rows have different colors), except columns with integer values. They are just white, like they were not affected by the Renderer.</p>
  
  <p>Please, explain to me, how this problem can be solved.
  Thanks in advance.
  Max.</p>