title: Putting JComboBox into JTable
body: <p>I want to put individual JComboBoxes into each cells of a JTable. ie. The JComboBox content is not identical for each cell. </p>
  
  <p>I basically would like to be able to just call the following code to add a row of JComboBox into the JTable. Anyone has any idea? Thanks</p>
  
  <pre><code>JComboBox cb1 = new JComboBox(...);
  JComboBox cb2 = new JComboBox(...);
  model.addRow(new Object[] {"Row name", cb1, cb2} );
  
  JComboBox cb3 = new JComboBox(...);
  JComboBox cb4 = new JComboBox(...);
  model.addRow(new Object[] {"Row name 2", cb3, cb4} );
  </code></pre>
  
  <p>The closest example code I can find is as follows. But it is for where JComboBox content is identical for the individual column. Not the solution I need.</p>
  
  <pre><code>TableColumn col = table.getColumnModel().getColumn(vColIndex);
  col.setCellEditor(new MyComboBoxEditor(values));
  </code></pre>
  
  <p>where</p>
  
  <pre><code>public class MyComboBoxEditor extends DefaultCellEditor {
      public MyComboBoxEditor(String[] items) {
          super(new JComboBox(items));
      }
  }
  </code></pre>