title: How can I add custom JComponent in a single JTable cell?
body: <p>I want to make a JTable , where <strong>one single cell</strong> (not all rows of a column) will contain a <strong>JComponent</strong> like <strong>JdatePicker</strong> or <strong>JComboBox</strong>.
  I have written this code </p>
  
  <pre><code>    DefaultTableModel dm;
      dm = new DefaultTableModel() {
          public boolean isCellEditable(int rowIndex, int columnIndex) {
              return !(columnIndex == 0); //make 0th column non-editable
          }
      };
      Object [] columnHeaders=new Object[]{"Field", "Value"};
      Object [][] data=new Object[][]{{"ID",""},{"Reg Year",""},{"Reg Date", ""}} ;
  
      regFormTable.setModel(dm); //regFormTable is a Jtable object
  </code></pre>
  
  <p>I also have a class that implements TableCellrenderer:</p>
  
  <pre><code>public class datePickerCellRenderer extends JFrame implements TableCellRenderer{
  @Override
  public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
      this.add(new JDateChooser());
      return this;
  }
  
  }
  </code></pre>
  
  <p>How can I use <em>datePickerCellRenderer</em> class to implement as I described. I tried a few ways. None of those worked. 
  [Using Netbeans GUI builder is there a way to do that?]</p>
  
  <p><strong>Plaese ask if any more code I need to add</strong></p>