title: jtable checkbox single selection java swing
body: <p>I have a jtable. I put checkbox in a column. But the check box are in multi selection mode,ie in my jtable there are 5 checkbox. i can select 5 of 5. I want to select only 1 at a time.
  How can I change it to single selection?</p>
  
  <p>My code is like :</p>
  
  <pre><code>TableColumn colTable2 = jTable2.getColumnModel().getColumn(1);
  
  colTable2.setCellEditor(new DefaultCellEditor(jCheckBox2));
  colTable2.setCellRenderer(jTable2.getDefaultRenderer(Boolean.class)); 
  </code></pre>
  
  <p>Thanks in advance.</p>